2

I have many pictures. I'm going to resize them all together from command line in feet, or if it's not possible in inches.

I know there are GUI apps that can do this but it works only one by one and it takes time to do this work!

I tried the Convert -resize command but it's only in pixel format and when I check in Inkscape that size is not what I want.

How can I do this?

Zanna
  • 72,312
Deniz
  • 751

2 Answers2

2

Image files like jpeg or png store discrete pixels only. How long 10 pixels are is purely a matter of convention or use. If you diplay the pixels on an old 70 dpi monitor, 10 pixels are 1/7 inch. If you print the pixels on a high resolution 1200 dpi printer, the 10 pixels are a mere 1/120 inch long.

So before you can talk about resizing in terms of real world lengths like foot or meter, you need to fix (fake) a resolution.

Then there are still two ways to resize. Just pretend them to have a different resolution. Or have a program like ImageMagick compute a different number of pixels pretending they keep the resolution. In the end resizing always means to change the number of pixels, whether you do it explicitly or your display or print program does it under the hood to fit the original number of pixels into a given frame size.

Harald
  • 1,310
1

I got how to resize!

First check picture info:

$ identify -verbose file.jpg
Geometry:
Resolution:
Print Size (inch):
Geomtry=Print Size X Resolution

Then do

convert -resize XxY! file.jpg output.jpg
Zanna
  • 72,312
Deniz
  • 751