Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

LPF Donation via Stripe | LPF Donation - Other Methods

Links below open in new window

ArcticMyst Security by Avery

Online ILD to PNG (and SVG to ILD) Converter

Joined
Nov 14, 2009
Messages
756
Points
0
I have been frustrated with many of the options and costs to simply look at ILD files. Many free options will only read files using the older (pre 2007) ILD standard. I decided to write an online ILD viewer that reads ILD files under all of the current standards. It outputs each frame as a PNG, and allows all of the PNGs to be downloaded as a zip file.

You can use it at http://198.167.138.126/ (or at http://198.167.138.126/svg2ild/ for the SVG to ILD converter)

FAQs:

Why does it ask what palette to use?
If the ILD file does not contain a color palette, this specifies what palette to use. If the colors are wrong, or parts of the drawing are missing, try selecting another palette.
What do the errors, warnings, and notices mean?
Most people can ignore most of the messages. They are designed to help people debug programs that create ILD files. Some of the terms are explained below.
Will it work over a slow internet connection?
Each frame will be generated as a 768x768 PNG. Please keep that in mind if you try to load the page over a slow internet connection. I tested it on my phone (~1mbps) and had no problems with a 70 frame file.
Are there file size limits?
To conserve bandwidth and CPU usage, files are limited to 500 kilobytes, and 100 frames. If the file is under 500 kilobytes, but over 100 frames, the first 100 frames will be shown, and an error will be displayed.
How long are PNGs kept on the server?
Up to 1 hour.


Known Bugs:
Z axis
Some ILD files specify a Z axis for 3D drawings. The Z axis is ignored when images are generated. Very few programs (actually, none that I could find) use the Z axis, which makes it hard to test. If you have a file that uses the Z axis, it will display incorrectly. Please shoot me a PM if you find one of these so I can implement the Z axis and test with it.

Future Plans:
• Open source. Once I am done working on this, I plan to publish the code (it is written in PHP).
• Animated GIF support. I tested generating animated gifs instead of series of PNGs, however, the CPU usage was unacceptably high. I will keep looking for new ways to do this with lower CPU usage so this feature can be implemented.​

File size, abuse, and donations
As mentioned in the FAQs, files are limited to 500 kilobytes, and 100 frames.

This script uses significant resources. Files have to be uploaded, and PNGs have to be downloaded. In addition to that, the script has to load the ILD file into memory, and CPU usage is ~5% per ILD file while the file is being processed. This script runs on a VPS (virtual private server), and I have limits on my account. If this script reaches the limits of my VPS plan, or my account is suspended, I will have to upgrade, or remove the script from my website.

I do not intend to pay extra for hosting out of my pocket so this script can run. If it becomes an issue, donations will become required to keep this online.

Please do not abuse this script.​

Terminology:
Color palette
A set of up to 256 colors that can be displayed in the frame.
True color
A frame that does not require a color palette. Each point has its own color, with 16.7 million colors possible. The true color ILD standard was released in 2007.
Format 0
3D frame that requires a color palette.
Format 1
2D frame that requires a color palette.
Format 4
3D true color frame that does not require a color palette.
Format 5
2D true color frame that does not require a color palette.
Let me know if you find any bugs, or have any new feature ideas.
 
Last edited:





OldNo7

0
Joined
Nov 13, 2012
Messages
79
Points
8
Re: Online ILD to PNG Converter

Nice! Awesome tool. It's be nice if I didn't have to enter the captcha every time. Maybe the first time sets a cookie that expires after a while.

Thank you
+1

Edit:
I'm not sure what kind of server you are running but it probably wouldn't be very hard to add the svg2ild.py that I posted about a week ago.
 
Last edited:
Joined
Nov 14, 2009
Messages
756
Points
0
Re: Online ILD to PNG Converter

Nice! Awesome tool. It's be nice if I didn't have to enter the captcha every time. Maybe the first time sets a cookie that expires after a while.

Thank you
+1

Edit:
I'm not sure what kind of server you are running but it probably wouldn't be very hard to add the svg2ild.py that I posted about a week ago.

Thanks!

I'll implement svg2ild now. I didn't see that before. That is a cool script. I'll send you a PM with some questions.

As for the captcha, I have no problem disabling it, I just need to save how many times you have uploaded something without typing in the captcha, and have the cookie expire based on uploads instead of time. I'll add that to the list of things to do.
 
Last edited:




Top