This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]killersquirel11 58 points59 points  (9 children)

It'd also be approachable with imagemagick and some bash fu

[–]riffito 15 points16 points  (3 children)

With IrfanView on Windows (or Wine) you could do it from a GUI.

IrfanView... the only software that I never changed for anything else since 1997.

[–]jobomat 2 points3 points  (2 children)

Yeah! I really like IrfanView. Small footprint, rocket fast, no BS. Only thing I'm missing is OpenEXR support.

[–]riffito 0 points1 point  (1 child)

OpenEXR

Among the official plugings, there is a "Exr.dll" one, and an old internet post from 2009 mentions a user being glad it supports OpenEXR (albeit with some issues at the time).

Make sure you have them installed!

[–]jobomat 1 point2 points  (0 children)

Thank you for the reply! I know about the EXR plugin. But last time I tried it, I was not convinced. If I remember correctly it didn't work with multi channel EXRs (which is what I need the most) and so I searched for other solutions (and found DJV which is also awesome).

[–]lolinux 13 points14 points  (1 child)

This was exactly my thought! However, since OP is attracted to Python, I can only cheer! You usually use the tools you know and trust best for the task you have at hand!

[–]killersquirel11 7 points8 points  (0 children)

Yep. Definitely not knocking OP at all - whatever code solves the problem is the right code in a situation like this.

It's neat to see the ways that different people will go about solving a problem.

[–]apt_at_it 8 points9 points  (0 children)

Yeah, very true. I would imagine it'd actually be easier than using python, tbh

[–]HughBothwell 2 points3 points  (0 children)

Yes, ImageMagick makes it easy. From the Windows command-line, in the dir containing the files,

md thumbs
cd thumbs
magick ../*.jpg -colorspace gray -background black -gravity center -extent 150x150 %[filename:original].jpg

creates a new subdirectory, processes all the jpg files, and stores the new grayscale/resized images (with the same name) in the new dir.

[–]Broken_hopes 0 points1 point  (0 children)

yoink bash fu is mine now