Danbooru

How to upload ugoira, the new pixiv animation system

Posted under General

Since original can't be fetched automatically anyway (for now at least), I'd assume not. Besides, the md5_mismatch tag is meant for something else entirely - when there have been minor changes, either from author correcting, or some sort of re-saving along the way, so I guess it wouldn't be useful here, even if it's technically correct

Log said:

So how do we source these? Link the first frame I would guess? Linking to the page itself seems bad since it would result in the inability to find the artist through a source check.

Does each individual frame even have a url? When I right click view image I can view an individual frame, but the address bar contains a base 64 string (meaning it contains the entirety of the frame's image data in the address itself) instead of an actual url, which isn't going to work.

I was going to suggest linking the zip file since it does have a url, but look at it:

http://i2.pixiv.net/img-zip-ugoira/img/2014/06/25/21/24/51/44305721_ugoira1920x1080.zip

It doesn't have the artist's identifier in it.

Same for the thumbnail, which is an img-inf:

http://i2.pixiv.net/img-inf/img/2014/06/25/21/24/51/44305721_s.jpg

Borrator said:

To be honest, I just go with a pseudo-url that I get by replacing the post number in the url of a random other picture by the same artist.

This seems like the best solution, as it covers both the issue of missing artist and things not linking back.

Toks said:

You haven't actually read the thread, have you? Use the bookmarklet I posted and you won't get a 403.

I had expected that snippet of Javascript to work the same when pasted directly into the URL bar, but nope, I get 403 if I don't make it a bookmarklet.

RaisingK said:

I had expected that snippet of Javascript to work the same when pasted directly into the URL bar, but nope, I get 403 if I don't make it a bookmarklet.

If I paste it into my address bar on Firefox I don't even get a 403, I get a "window is not defined" error. I assume it puts security measures in place to prevent javascript from doing much from the address bar.

If I do it in Chrome it works fine, no 403.

I'd recommend not pasting javascript into your address bar, for reasons of browser inconsistencies if nothing else.

CureGecko said:

I wrote a perl script that downloads and converts the animated pixiv images. https://cure.ninja/pixiv download if you think it's useful to you.

FYI:

  • Your script assumes the delay is the same for all frames, so it won't work right if each frame has a different delay.
  • gifs round the delays down to the centisecond, so ugoira with delays exact to the millisecond won't be the correct speed if gif is chosen as output.
  • For some posts, the webm and mp4 ones seem extremely sped up to me. I assume that you're just passing the frames as-is without slowing it down, meaning it will display each image for exactly one frame - way too quick (unless the delay happened to be small to begin with).
  • Converting to mp4 will fail with "height not divisible by 2" if the images have an odd number height.

For the record, I've been writing a ruby script to convert these, here (currently only gif is supported as output). And there has been discussion on it here.

Made this post with the help of VirtualDub by the way and it looks as good as the original pixiv source without any quality loss in terms of color: post #1723486

Step by step:
1: go to here http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44408673
2: press F12 and go to "Console" tab, paste this "window.location.href = pixiv.context.ugokuIllustFullscreenData.src" on the console input, the input is located at last row with arrow that looks like this: >
then your browser will start downloading the image pack in ZIP format.
3: extract the image sequence and convert them into GIF with Virtualdub.

Virtualdub is recommended as it produce the best GIF image with highest quality. But it's not that user-friendly though. Any GIFs, downloading is easy, converting is harder as the Frame per second may not correct on Virtualdub, you have to adjust the FPS manually. So it was really pain to adjusting the frame rate in virtualdub. It's much easier to make the gifs in CS6 but you always sacrifice color quality so making these gifs in VirtualDub is the best option, at least for me but it takes so much to find perfect frame rate in virtual dub. For example as for example the frame delay was "50" in the original pixiv source so I had to set the frame rate in virtualdub to 20 in order to find matching speed between two animation. If I made 19 then it was slow and if it was 21 then it turned out to be more fast. In CS6 all I needed to do set frame rate to "0,05" and it was perfect with the original frame rate/delay in the pixiv source. This is really complicated and if someone makes frame rate guide especially in VirtualDub then it would be really nice.

Delay: 100 is normal speed and you don't need to touch any frame rate in CS6
Delay: 50 is increased speed and you have to write 0,05 in CS6 and it was 20 fps in virtualdub.

These are just example so all I need too or we should figure out to deal with these frame rates and delays.

1 2 3 4 5 6 7 10