#1  
Old 3rd April 2011, 18:36
Brian_A Brian_A is offline
Member
 
Join Date: Nov 2008
Location: Paris France
Posts: 31
Thanks: 8
Thanked 3 Times in 2 Posts
Unhappy PHP ImageMagik and exec

Hi,
I want to execute in php an imageMagik command:-

convert -font "C:/Windows/Fonts/arial.ttf" -fill "#231112" -pointsize 26 -gravity "Center" -draw "text 0,0 'qZkrndt5'" -rotate 3 C:/wamp/www/security_images_with_php/images/bg3.png C:/wamp/www/security_images_with_php/images/tmp/e7ae97c252a4dd24841a829148ac01c6.png

I'm using my wampserver for development with ImageMagik installed.

when I paste this into the cmd prompt it works fine, but when I try in php with

exec('convert -font "C:/Windows/Fonts/arial.ttf" -fill "#231112" -pointsize 26 -gravity "Center" -draw "text 0,0 'qZkrndt5'" -rotate 3 C:/wamp/www/security_images_with_php/images/bg3.png C:/wamp/www/security_images_with_php/images/tmp/e7ae97c252a4dd24841a829148ac01c6.png');

I get no result and I cannot for the moment see why. I get no result either on our linux server (with paths modified of course).

Anyone got any tips for this?

Brian
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2011, 11:01
Brian_A Brian_A is offline
Member
 
Join Date: Nov 2008
Location: Paris France
Posts: 31
Thanks: 8
Thanked 3 Times in 2 Posts
 
Default

Whoops,

I had just installed ImageMagik but did not reboot, only restarted Apache. After a reboot everything works fine.

Brian
Reply With Quote
Reply

Bookmarks

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

Forum Jump


All times are GMT +2. The time now is 06:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.