Web Hosting Forum | Lunarpages
News: Server Migrations to San Diego: Deneb, Felix and Tsohea are moving to San Diego starting Tuesday, December 30, 2008 at 10pm Pacific. They will complete their moves Friday night, January 2, 2009

Isis, Seth and Ez-web-n-mail will move physically on Friday, January 2, 2009

Please see the forum posts at http://www.lunarforums.com/lunarpages_web_hosting_server_information-b54.0/

+ Submit Your Own Web Site for the January 2009 Site of the Month Contest!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 07, 2009, 07:13:52 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: ImageMagick Question  (Read 637 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: 1132



« 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