-
Command line tools to resize the image files....
ImageMagick Usage
Command line tools to resize the image files.
File size for the image files depend on the amount of details regarding that image in that file. But in case of clear picture or any high resolution, the file size gets increased. That's why many times sites which content many image files take time to load in a browser.
ImageMagick package is a program which provides functions to resize, manipulate, rotate etc to the image.
One function called mogrify which comes with the imagemagick package
You can check whether Imagemagick rpm is installed on the server with the following command.
======================
[root@server]# rpm -q ImageMagick
======================
Once it is confirm that ImageMagick is installed on the server, you can use mogrify function to modify the images as per your requirements.
======================
[root@server]# mogrify -resize 480x640 *.jpeg
======================
The above command will resize all the JPEG images exactly to the 480 pixels in width and 640 pixels in height.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks