Posted on: 02/24/15 02:30PM
jedi1357 said:
Jerl said:
Ugoria Is actually a series of static PNG images played as an animation with JavaScript. It loads the images from a zip file linked to in the source, so you can download that
www.pixiv.net/member_illu...um&illust_id=47594886Where is the link to the zip file?
In the
source. As in, the HTML source code.
In the source for that page, it appears like this:
http:\/\/i3.pixiv.net\/img-zip-ugoira\/img\/2014\/12\/17\/00\/06\/04\/47594886_ugoira600x600.zip
which, when unescaped, becomes:
i3.pixiv.net/img-zip-ugoi...7594886_ugoira600x600.zipand compile the individual frames into an animated GIF/PNG like you would normally.
I don't normally do that, in fact, I've never done that.
You might not have manually done that, but that's exactly what whatever tool you've used to compile GIFs before did for you. It may have grabbed the frames from a video file, but it did pretty much exactly the same thing.
I take it we won't be getting native support for ugoira files? (Click and done.) I didn't see it in the tracker.
Currently our upload system only supports direct links to actual images. If you try to give it the ZIP file from the source, it won't work. If you try to right-click the image being displayed on the page and copy the link to that, it'd try to download that single individual frame. It would take a decent amount of effort to rework the upload system to support ugoira, probably borrowing code from TheDoujin's upload tool. We would also either need to convert the image into an animated GIF or PNG server-side or rework how we store images to support storing a ZIP file and add JavaScript to display it similarly to how Pixiv does. We'll need to write this code ourselves to avoid plaigarism, and the system its self might be patented, which would prevent us from using it. I'm not saying that it won't happen, but since ugoira can be compiled into animated GIF/PNG images manually, it's likely that it'll wait until after some other features are added first.
Ugoira support isn't currently planned, but if you submit a ticket on the trac, it will certainly be considered when we get to it.