[PLUG] Resizing images with imagemagick

Ben Koenig techkoenig at gmail.com
Tue Apr 23 20:46:38 UTC 2019


On 4/23/19 1:43 PM, tomas.kuchta.lists at gmail.com wrote:
> I do this following way:
> 768px x 576px = 442368px
>
> To change all images in a directory to this resolution regardless of
> orientation:
> mogrify -resize @442368 *.jpg
>
> Hope it helps, Tomas

Careful with mogrify, it overwrites the original image file.


convert writes to an additional file (preserving the original). Some 
people like to live dangerously I guess ;-)




>
> On Tue, 2019-04-23 at 12:30 -0700, Rich Shepard wrote:
>> On Tue, 23 Apr 2019, Ali Corbin wrote:
>>
>>> It'll take human intervention, to look at each individual image and
>>> decide
>>> whether to rotate it.
>> Ali,
>>
>> This I knew. I usually use the GIMP for this manipulation and am glad
>> to
>> learn that ...
>>
>>> Happily, it's not too onerous to do this in imagemagick, using the
>>> 'display' command.
>>>
>>> This will bring up the first jpg in the directory as the start of a
>>> slideshow.
>>> display *.jpg &
>>>
>>> Then you can hit the space bar to cycle through the images. '/' or
>>> '\'
>>> will rotate the image that you're looking at, and Ctrl-S will save
>>> it.
>> And once they're all properly oriented I can use convert's -resize
>> option to
>> change all in the same subdirectory.
>>
>> Much appreciated,
>>
>> Rich
>> _______________________________________________
>> PLUG mailing list
>> PLUG at pdxlinux.org
>> http://lists.pdxlinux.org/mailman/listinfo/plug
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug



More information about the PLUG mailing list