Skybase
![]() |
||
Posted: July 15, 2013 7:49 am | ||
Skybase
![]() |
I actually wanted to do this! I was asking one of my former coworkers for a file format that would export binary data... I couldn't just do it myself.
May I ask how you did it? |
|
Posted: July 15, 2013 7:49 am | ||
Indigo Ray
![]() |
Unfortunately for me, this freezes FF for about half a minute when clicking on the filter and any time the map is edited.
![]() By the way, I almost dropped dead when I first saw the filter; I thought the rose was procedurally generated. |
|
Posted: July 15, 2013 8:26 pm | ||
Skybase
![]() |
(what I mean by "file format" was a text file with binary data.)
Also yes, the filter's kinda heavy. But it does render ![]() |
|
Posted: July 16, 2013 2:09 am | ||
ThreeDee
![]() |
Well well, now there is a prime candidate for an FF helper application: Embed external image!
So, how DID you do it? ![]() |
|
Posted: July 16, 2013 2:32 am | ||
Ken |
Hi.
I first tried to write the array with FF Map script. FF lua makes it possible to write the output to a file on your hard drive. However, the way that FF works means that x and y do not appear to be written in rows and columns as expected so the output file becomes corrupted. The way to get this to work correctly may be to write the whole image to a x,y table and then write the table to a file. Rather than rewrite my code I transferred it to Lua for Windows where the array is written correctly. This picture of the rose is 300x300 pixels and about the maximum size that could be submitted to the library with FF current 1mb filter size limit, it’s also pretty slow and so it’s probably better to use smaller images. I have attached the FF filter to make the array, maybe someone can fix the FF version. It is an Unsafe Script so make sure you allow these to run. Regards Ken ken_save a file_nw.ffxml |
|
Posted: July 16, 2013 5:06 am | ||
Skybase
![]() |
That's impressive stuff. Reminds me of the first mini image-reading program I made for a python class using PPM (or something of that sound) files. I probably needed a starting point for understanding this sort of thing. Thinking this is perfect.
![]() Thank you! |
|
Posted: July 16, 2013 6:47 am | ||
CFandM
![]() |
If I was not busy enough with (outside FF) things..
![]() ![]() Very Cool Stuff and I can think of a lot of uses for this... ![]() Stupid things happen to computers for stupid reasons at stupid times! |
|
Posted: July 16, 2013 9:03 am | ||
ThreeDee
![]() |
Ok, thanks Ken, that's great.
I have corrected the LUA script so that you can use it to create the array. There are two controls, "Output Image Size" which determines how many samples (pixels) are stored and "Write", which determines whether a file is written. This way the filter doesn't write a file every time you move any other control, but only when the checkbox is active. So you can set up your image and then turn the checkbox on and off, and the file will have been written. I changed the file saving location to "c:/ImageOutput/Image.txt", which means you will have to create that folder before running the filter. (At least on my system you can't write directly on "c:") The filter doesn't appear to do much, only the top left hand will have a box of solid color. Then you will have to copy and paste the resulting array (excluding the first "output size:" line which is there just to remind you how many pixels are used in the image) into Ken's filter and change MAPSIZE_X and MAPSIZE_Y accordingly to the output size that you used. Z_Save to File.ffxml |
|
Posted: July 17, 2013 5:46 am | ||
CFandM
![]() |
This is some great stuff Ken and ThreeDee..
![]() Corrections work good ThreeDee.. Just one use that I was messing with this morning can be found here.... shh don't tell the nsa... ![]() DRAGON FLOWER Hint..(don't forget to check the image with a hexeditor)... Only use the original image thou since re-saving the image will destroy the hidden message data... ![]() ![]() Stupid things happen to computers for stupid reasons at stupid times! |
|
Posted: July 17, 2013 7:28 am | ||
ThreeDee
![]() |
The same method could be used to embed a bitmapped font...
![]() |
|
Posted: July 17, 2013 9:30 am | ||
Ken |
Hi.
Thank You for fixing the code ThreeDee. It is working perfectly and keeps the whole process within FilterForge rather than using Lua for Windows. I made some more changes. Firstly a checkbox to preserve transparency. bitmapped fonts, brushes etc need transparency although It does increase filesize. Number of colours. Chucks Ovaltine array only requires two colours so there is now an int slider to choose between 10, 100 or 1000 colours. The code now writes a ffxml file. It is no longer necessary to copy and paste the array. The code now saves a ffxml file which can be opened straight back into FilterForge. The date and time have been added to the filename to prevent files being overwritten. Ken. Z_Save to FFXML.ffxml |
|
Posted: July 18, 2013 2:27 pm | ||
ThreeDee
![]() |
Nice work. Now we can make custom bitmap icons and other elements in a flash!
|
|
Posted: July 19, 2013 3:20 am | ||
David Roberson |
I downloaded this thinking it generated the flower image. Unfortunately, FF freezes and remains unresponsive so long I usually kill the process. I can't delete it for that reason (not internally, anyway) and the number in the URL does not match any of the Library file names, so I can't get rid of it that way without asking for help with the right .ffxml file name.
Anyone know? It's not really something I'd ever use. Every now and then I see it as a "new" filter in the list and click on it, and freeze FF. |
|
Posted: April 26, 2020 5:27 am |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,711 Registered Users
+18 new in 30 days!
153,533 Posts
+38 new in 30 days!
15,348 Topics
+73 new in year!
31 unregistered users.