Pixiv Champloo 2


Just another curated random subset to stir up my Pixiv recommendations. That is, a script opens 100 random images out of ~11,000, and I choose whatever catches my eye, repeating until I get at least 26 in both the sfw and nsfw sets.

The workflow is: drag-and-drop from Preview into a Terminal window where I’ve typed an echo command, switch focus to the terminal, press spacebar twice, and switch back to Preview. When I’m done, switch to the terminal and hit enter, then edit the echo command into an mv into a subdirectory.

Why the odd steps? Because Apple keeps making Preview.app flakier with each release. Normally, when you drag files into Terminal, you get the properly-escaped full path followed by a space, but when you drag from Preview, it will be followed by a backslash and a return, except when it’s followed by a non-backslashed return, which happens at random intervals. That’s why I’m collecting the list with echo instead of using mv directly.

This is in addition to the way it will sometimes return a quarantine path for files that have extended attributes, which is why I strip those off immediately after downloading (xattr -d com.apple.quarantine *.*, or copy them to an ExFAT volume and periodically rm ._*).

I defer the mv to the end because Preview refreshes all the image thumbnails when it detects that some of them have moved. This is no big deal when you have only 100 images open, but if you’re, say, pulling up everything that Pixiv tagged as 魅惑の谷間 (~1,500 at the moment…), it’s annoying.

The rest of my workflow is resizing with ImageMagick and optimizing JPEG size with Guetzli, pulling in links and tags with my PixivPy script, and uploading with s3cmd. I generally accept the shuffled order, but select one image to pull above the fold, then maybe shift a few that got clustered, and put a punchline at the end if I have one. And a cleanup script to number them all sequentially before posting.


Perfect Shuffle


Comments via Isso

Markdown formatting and simple HTML accepted.

Sometimes you have to double-click to enter text in the form (interaction between Isso and Bootstrap?). Tab is more reliable.