Jump to content
MDDHosting Forums

ImageMagick - possible problem


apprentice

Recommended Posts

Resizing a relatively small picture (1024x768, 600kb) using ImageMagick command line utility takes 8-9 seconds. I tried this on 2 different MDD shared hosting servers - the time it took to complete was similar.

I am using a test php page with only one line >>> exec( "convert t.jpg -resize 200x200 ts.jpg")

Any idea why it is so slow? From what I am seeing online, the task should take no more than 0.5 seconds (from replays on http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=12106)

Thanks.

Link to comment
Share on other sites

Thanks Scott - I just opened a support ticket for this.

 

I also did some more testing - resizing of the images to 200px wide (retaining proportions) took:

 

image 1 (.jpg, 400x266, 42KB) completed in 7.5 sec

image 2 (.jpg, 1024x768, 606KB) completed in 8.25 sec

image 3 (.jpg, 3032x2007, 1.9MB) completed in 8.5 sec

image 4 (.jpg, 4872x3248, 9.4MB) completed in 10.3 sec

 

Seems that there is a 7+ seconds delay in execution... Image 1 should have converted instantaneously.

If anyone knows why this is happening please let me know.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...