Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 13, 2008, 03:21:22 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: ImageMagick Question  (Read 611 times)
nbtc971
Pong! (the videogame) Master
*****
Offline Offline

Posts: 27


« on: January 17, 2008, 05:30:36 PM »

Hello,

I have a question about how to resize and convert an image using ImageMagick. On my old server, with another hosting company, this worked:

Code:
passthru("/usr/bin/convert -geometry 71x71! /here/is/the/path/newsFiles/$_FILES[upfile][name] JPG:/here/is/the/path/$newFileName");

However on my VPS with Lunar this isn't working. I'm trying to study up on any changes that might of been made in the newer version but so far no luck. I did install ImageMagick using yum so I know it's there. Any help is appreciated.

Thanks,
Doug
scdominion.com

I failed to mention that this IS changing the filetype to JPG but it's not resizing the image. Thanks.
« Last Edit: January 17, 2008, 05:33:14 PM by nbtc971 » Logged
nbtc971
Pong! (the videogame) Master
*****
Offline Offline

Posts: 27


« Reply #1 on: January 17, 2008, 05:54:09 PM »

Never mind I figured it out. Was resizing the wrong file. Should of been:

Code:
passthru("/usr/bin/convert -geometry 71x71! /var/www/vhosts/scdominion.com/httpdocs/newsFiles/$newFileName JPG:/var/www/vhosts/scdominion.com/httpdocs/newsFiles/$newFileName");

Thanks.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #2 on: January 17, 2008, 09:03:59 PM »

Hi Doug,

I am glad to hear you were able to solve the problem yourself. Please feel free to post on this forum if you have any questions about VPS plan with Lunarpages.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM