How to upload ugoira, the new pixiv animation system

Posted under General

Type-kun said:

Writing a server app was a joke, of course, even though it might work.

...I hate it when "that was a joke" ends up being "what the hell, I can write it". Why did I even do this.

https://gist.github.com/Type-kun/a0e096d6b6480611d15c

Usage: ruby pixanim_srv.rb <port>
To queue images to process access http://localhost:<port>/pixanim?ID=<id>&method=<method> using your web browser

I assume that you can write a bookmarklet to redirect you at specified address. It should take about 3 lines of code IIRC.

Use at your own risk. Or rather, please don't use this at all, it's so terrible ._.

Toks' script works fine... but you gotta install ruby and then you gotta install the rmagick "library" for ruby, and installing rmagick on windows is suffering, as he said. Also it's a command script so you'll be copying post numbers in cmd instead of having a conviniet addon. But it does work. And I'm using it. It's worth mentioning that I'm also a commoner - I had never touched ruby before that

wrr said:

I see

I suspect you stuff still Work in Progress. or is it ready for commoner like me to use?

My script works and you can use it, but getting it installed initially will be time-consuming and confusing. Type-kun's guide should help though.

If you don't want to do it you can wait until Danbooru itself can convert these.

It would be nice to incorporate all possible upload solutions into the op-post, or in the ugoira wiki, until the script is integrated. Otherwise, it's easy to miss them without reading through the entire topic.

Well, we don't really have much anyway. I mean, aside from the bookmarklet that lets you do it manually on first page, the only other thing without serious bugs is Toks' script, the getting to run of which would have you read the whole topic anyway (or at least the parts where rmagick is mentioned). What is more, I think we agreed that webm is the best for ugoira and that's not even yet uploadable to begin with. The best advice we can put in the wiki for now is "wait for webm support"

You can use

javascript:var%20str%20=%20"";var%20frames%20=%20pixiv.context.ugokuIllustFullscreenData.frames;for%20(var%20i%20=%200;%20i%20<%20frames.length;%20i++)%20{str%20+=%20frames.file%20+%20":%20"%20+%20frames.delay%20+%20"\n";}alert(str);%20window.location%20=%20pixiv.context.ugokuIllustFullscreenData.src;for a list of delays + download. If you don't want to do it manually, there's Toks' script which automatically downloads and converts to gif, apng or webm. However, you'd need to install ruby and get rmagick to run on it, and that's far from trivial. If you're gonna download ugoira often though, I recommend Tok's script - once done with rmagick it's the quickest

wrr said:

so I decide to install the ruby and rmagick thing. yet I am still dont know how to use it. I am completely beginner in script thing. so I need guide of it.

sorry if I ask a lot

Do you know how to open and work with windows command window (cmd.exe)? You'll need that knowledge both to install ruby and to run the script. I'm going to assume you do.

Save the Toks' script somewhere on your hard drive as "pixanim.rb", then open cmd.exe, issue "cd" command to the directory where you saved it, then run it with "ruby pixanim.rb <Pixiv_image_id> <output_format(gif|apng|webm)>", replacing things in <> accordingly.

Also, not to offend you, but I think it's going to be hard to install the prerequisite software for the script if you have trouble running it...

actually I think I got the installation correct. I pretty much follow the instruction. (althought I use 32bit eventhought I m using 64bit computer. but when I try 64 bit version. it simply not working)

but know I get this problem. I save my pixanim.rb on local disk

c:\>ruby pixanim.rb <44579303> <webm>
< was unexpected at this time.

1 2 3 4 5 6 7 8 9 10