I have a multiple images of one app. The original image size is 800x480 pixels. I want to crop a specific part of all images. lets say 50x50 pixels image from original images.
Is there any software or online service which i can use it for.
I have a multiple images of one app. The original image size is 800x480 pixels. I want to crop a specific part of all images. lets say 50x50 pixels image from original images.
Is there any software or online service which i can use it for.
If you don't mind using the command line:
ImageMagick could do the job.
Where magick
is the app from ImageMagick toolbox.
Example:
Input Files are 800x480
magick Input_File_1.png -crop 400x240+0+0 cropped_image_1.png
where new size is 400x200
starting at origin, hence offset is x=0
and y=0
(can be ommitted)
results in:
crop with setting an offset at x,y = (200,120)
magick Input_File_1.png -crop 400x240+200+120 cropped_image_1.png
where new size is 400x200
and offset is x=200
and y=120
results in:
To crop more files use mogrify
and globbing. Infiles will be overridden!!!. Be sure to backup your files before.
mogrify -crop 400x240+200+120 Input_File_*.png
For your specific use case of having infiles with 800x480 and cropping 50x50, the command would be:
For one file:
magick YOUR_INFILE.png -crop 50x50 YOUR_OUTFILE.png
For several files, with files i.e.:
FILE_1.png
FILE_2.png
FILE_2.png
mogrify -crop 50x50 FILE_*.png
get the software at: https://imagemagick.org/script/download.php
documentation links:
https://imagemagick.org/script/command-line-processing.php
https://imagemagick.org/script/command-line-options.php#crop
https://imagemagick.org/script/mogrify.php