Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > FAQ's / Tutorials.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-23-2008, 05:12 AM
Junior Member
 
Join Date: Oct 2008
Posts: 10
Default Use of ImageMagick....

Use of mogrify function in ImageMagick

Image file size will depend on the amount of data one has stored in the file and the file size get increased as image clarity and resolution get increased.
Image file size will depend on the amount of data for the image you stored in the file.

Imagemagick is a collection of tools with which you can modify, resize images on your site.

Many times site which contents many images takes a lot of time to load in a browser.
You can optimize image file size with ImageMagick.

You can confirm with the following command that ImageMagick is installed on the server
========================
[root@server_test]# convert -version
========================

After confirming that Imagemagick has been installed on the dedicated server, you can use command line tool called "mogrify" to resize images on your site.

========================
[root@server_test]# mogrify -resize 640x640 *.jpeg
========================

If you run above command it will resize all the jpeg image files to 640 pixels in width and 640 pixels in height.
First 640 will define image's width and second will define height for the image.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:17 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum