News for hackers. Stuff that matters.
Re:Fred's ImageMagick Scripts by thanatos519 on Friday February 18, 2022 @03:10AM (#30383290)
Easy-peasy:

http://www.graphicsmagick.org/GraphicsMagick.html#details-cr...

«If the x and y offsets are omitted, a set of tiles of the specified geometry, covering the entire input image, is generated. The rightmost tiles and the bottom tiles are smaller if the specified geometry extends beyond the dimensions of the input image.»

Re:Fred's ImageMagick Scripts by JKCalhoun on Friday February 18, 2022 @11:15PM (#30394383)
Excellent. On MacOS I needed to do:

% brew install graphicsmagick

% gm convert -crop 32x32 source_image.png +adjoin image_tile%02d.png

I'll have to put it through its paces on some large images this weekend.

Re:Fred's ImageMagick Scripts by tobltobs on Friday February 18, 2022 @07:00AM (#30384632)
The problem with gm and im is that both try to load the complete image into memory.