Sunday, May 5, 2024
334
rated 0 times [  334] [ 0]  / answers: 1 / hits: 286934  / 2 Years ago, mon, april 18, 2022, 3:56:33

I have Ubuntu 10.04. I have converted image through terminal using the following command:



convert myfigure.png myfigure.jpg


But I want to resize the height and width of the converted image. Is there any way to do this?


More From » command-line

 Answers
4

Same command, with an extra option:



convert myfigure.png -resize 200x100 myfigure.jpg


or



convert -resize 50% myfigure.png myfigure.jpg





To resize multiple files, you can try the following command (as suggested by @test30)



find . -maxdepth 1 -iname "*.jpg" | xargs -L1 -I{} convert -resize 30% "{}" _resized/"{}"

[#32061] Monday, April 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mouedi

Total Points: 420
Total Questions: 109
Total Answers: 116

Location: Philippines
Member since Wed, Aug 19, 2020
4 Years ago
;