Re: [PHP] ImageMagick
On Fri, May 1, 2009 at 7:11 AM, Kevin Waterson ke...@phpro.org wrote: This one time, at band camp, Michael A. Peters wrote: Here's the scenario - Website has some demonstrative images. I create these images with the gimp - starting with a jpeg, adding a few text layers and straight lines. I then save as xcf in case I ever need to edit. Then I export to jpeg, resize for thumb and export to jpeg again. It seems that Imagick supports XCF internally: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1t=10431 I would imagine you can perform your Imagick export as you would with any other image type. -- // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ImageMagick
Here's the scenario - Website has some demonstrative images. I create these images with the gimp - starting with a jpeg, adding a few text layers and straight lines. I then save as xcf in case I ever need to edit. Then I export to jpeg, resize for thumb and export to jpeg again. Admin interface to my web face needs to allow for upload of image. What would be sweet is if I could just upload the gimp xcf in these cases, and have ImageMagick do the export to jpeg and thumbnail creation. Advantage of doing it this way - it will allow me to keep the original xcf on the server along with the generated images. Issues - I'd rather not have any code that spawns a shell, so I can only do this if the pecl imageMagick module is up to snuff for xcf-jpeg conversion. Anyone used it? Looks like I'll have to compile it, before I do that I would like to know if it even is up to the task. Second possible issue - I don't know how well imageMagick can deal with an xcf file that uses text layer / fonts. I assume I'll have to install the font used on the server (Adobe New Century Schoolbook Type 1 - yes, I have license for it), but if so, how would I specify to ImageMagick the font path? Anyone done this sort of thing? I may just do the export on my home box via gimp and just scp the xcf to the server so a copy is stored there as well, but it would be nice to just stick the xcf into a file upload field and just have php do the rest. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick
On Thu, 2009-04-30 at 23:35 -0700, Michael A. Peters wrote: Here's the scenario - Website has some demonstrative images. I create these images with the gimp - starting with a jpeg, adding a few text layers and straight lines. I then save as xcf in case I ever need to edit. Then I export to jpeg, resize for thumb and export to jpeg again. Admin interface to my web face needs to allow for upload of image. What would be sweet is if I could just upload the gimp xcf in these cases, and have ImageMagick do the export to jpeg and thumbnail creation. Advantage of doing it this way - it will allow me to keep the original xcf on the server along with the generated images. Issues - I'd rather not have any code that spawns a shell, so I can only do this if the pecl imageMagick module is up to snuff for xcf-jpeg conversion. Anyone used it? Looks like I'll have to compile it, before I do that I would like to know if it even is up to the task. Second possible issue - I don't know how well imageMagick can deal with an xcf file that uses text layer / fonts. I assume I'll have to install the font used on the server (Adobe New Century Schoolbook Type 1 - yes, I have license for it), but if so, how would I specify to ImageMagick the font path? Anyone done this sort of thing? I may just do the export on my home box via gimp and just scp the xcf to the server so a copy is stored there as well, but it would be nice to just stick the xcf into a file upload field and just have php do the rest. Do the text layers have to go beneath something on the original xcf, or have special effects applied to them? If not, you can add t existing images with GD, by using a source image, adding text layers, etc, and then exporting it as a new graphic. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick
Ashley Sheridan wrote: Do the text layers have to go beneath something on the original xcf, or have special effects applied to them? If not, you can add t existing images with GD, by using a source image, adding text layers, etc, and then exporting it as a new graphic. Yeah - I know I can do text with gd, I already do for some things. The issue is that the placement of the text and the lines is custom per image, so it would require php coding each instance. Some examples - http://i142.photobucket.com/albums/r103/FunkyRes/8md.jpg http://i142.photobucket.com/albums/r103/FunkyRes/telegans_shields02.jpg Can be done with gd but it's a lot easier to add the text layers with a gui image editor - unless gimp has a php-gd export function that could write the code for me (that would be cool) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick
This one time, at band camp, Michael A. Peters wrote: Here's the scenario - Website has some demonstrative images. I create these images with the gimp - starting with a jpeg, adding a few text layers and straight lines. I then save as xcf in case I ever need to edit. Then I export to jpeg, resize for thumb and export to jpeg again. http://phpro.org/tutorials/Imagick.html Kevin http://phpro.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ImageMagick functions
When I look at online documentations of PHP I can not see ImageMagick functions. Only classes. What happened? -- Allah varsa çocuklar neden ölüyor ki? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick functions
These classes contain methods which are just normal functions only residing in a class. pichoscosama wrote: When I look at online documentations of PHP I can not see ImageMagick functions. Only classes. What happened? -- Allah varsa çocuklar neden ölüyor ki? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - http://devshed.excudo.net http://devshed.excudo.net -- View this message in context: http://www.nabble.com/ImageMagick-functions-tp20199962p20201449.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Imagemagick Displaying Images
I have an application that shows thumnails of PDF files in different directories. I have so far decided that I can use convert from imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The problem I'm running into is that I don't want to save these thumbnails. Instead I just want to take the binary data and display an image with it. I figure that it's possible since you can store binary data in a database and display it that way. an example of what I'm doing is: convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] - The '-' makes it display the contents of the image to stdout. I want to caputre that binary data and somehow display the images inline with the website. Is this possible, or am I living in a dream world ;) Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Imagemagick Displaying Images
On Tuesday 02 May 2006 18:19, Ray Hauge wrote: I have an application that shows thumnails of PDF files in different directories. I have so far decided that I can use convert from imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The problem I'm running into is that I don't want to save these thumbnails. Instead I just want to take the binary data and display an image with it. I figure that it's possible since you can store binary data in a database and display it that way. an example of what I'm doing is: convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] - The '-' makes it display the contents of the image to stdout. I want to caputre that binary data and somehow display the images inline with the website. Is this possible, or am I living in a dream world ;) Okay, I'll admit it. I didn't STFW. I believe that if I make a seperate script to just display the images, and then display them all with img src='show_image.php?id=blah'. Of course this is just theory until I try it, but I'm pretty sure this is on the right path. Thanks for listening anyway, and maybe this will help someone else ;) -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Imagemagick Displaying Images
On Tuesday 02 May 2006 18:24, Ray Hauge wrote: On Tuesday 02 May 2006 18:19, Ray Hauge wrote: I have an application that shows thumnails of PDF files in different directories. I have so far decided that I can use convert from imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The problem I'm running into is that I don't want to save these thumbnails. Instead I just want to take the binary data and display an image with it. I figure that it's possible since you can store binary data in a database and display it that way. an example of what I'm doing is: convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] - For further clarification, here is how I got it to actually convert, but still display the output to standard out: $img = shell_exec(convert -resize 800x600 /tmp/file.pdf[0] jpg:-); header(Content-type: image/jpg); print($img); Now you can dream up any sort of ideas with GET variables to define which image you want. Later, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ImageMagick Versus GD
which one is better ImageMagick or GD? infact I am much more curious about their image processing speed and server load. especially resizing large imagefiles. thx in adv. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick Versus GD
Personally, I prefer IM. As far as load issues are concerned, I am not sure which one is quicker. I have used both in large scale image web apps (i.e. photo galerries). I have experienced a long loading time for images in IM, that are at or above 2MB in size. C.J. which one is better ImageMagick or GD? infact I am much more curious about their image processing speed and server load. especially resizing large imagefiles. thx in adv. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- CJ Walsh http://odewebdesigns.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick Versus GD
On Tue, April 5, 2005 1:05 am, [EMAIL PROTECTED] said: which one is better ImageMagick or GD? infact I am much more curious about their image processing speed and server load. especially resizing large imagefiles. It probably depends more on your Machine's typical load/usage/processes than anything else. Benchmark for yourself in realistic conditions. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick
Does anyone knows if PHP library for ImageMagick has multilanguage support? I am planning to use it but I have not found anything related to this on their site Do you mean for the error messages ? IMHO the error messages are for the programer, so there is not a real need to be multi-language. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ImageMagick
Hello! Does anyone knows if PHP library for ImageMagick has multilanguage support? I am planning to use it but I have not found anything related to this on their site Thanks, Arthur
[PHP] imagemagick
this might be a small bit o f f t o p i c but im trying to install imagemagick and running into a problem. im trying to crop JPEGs but imagemagick says it has no 'image decode' for that file type! upon closer inspection, it looks like youve to enable jpeg while configuring an install. but could anyone tell me how to do this? im trying to install on a standard red hat linux 8 box. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ImageMagick + PHP on Win32
Hi, I have downloaded and installed ImageMagick (5.5.7 Q8) in c:\imagemagick added it to %PATH% I have downloaded the latest php_imagick.dll extension from kromann.info and installed it. PHP says imagick is installed properly. However, when i am trying to run any of the examples that come with it I get only errors. If anyone knows how to install imagemagick on win32, please do advise me. I have googled fot it, but i did not manage to fins anything usefull (perhaps my mistake) Thank you, Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Imagemagick
i have a script where people upload an image it is then renamed and is supposed to be cripped according to the values they submit but i cant seem to get it to crop it uploads and is renamed fine though. also i wish to use a static name so when another picture is uploaded the old one is overwritten that is why the input path and output path is the same. -Code-- exec($path_imagemagick.convert -crop 0x100+0+0 $imagepath.$filename $imagepath.$filename); -End Code-- any ideas why this wont work? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Imagemagick
Cameron -- ...and then Cameron Metzke said... % ... % a static name so when another picture is uploaded the old one is overwritten % that is why the input path and output path is the same. % -Code-- % exec($path_imagemagick.convert -crop 0x100+0+0 $imagepath.$filename % $imagepath.$filename); % -End Code-- To change an image rather than make a new version of it, just use mogrify. % any ideas why this wont work? Start there and let us know how you do. HTH HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, Science and Health http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] PHP Imagemagick
% a static name so when another picture is uploaded the old one is overwritten % that is why the input path and output path is the same. % -Code-- % exec($path_imagemagick.convert -crop 0x100+0+0 $imagepath.$filename % $imagepath.$filename); % -End Code-- To change an image rather than make a new version of it, just use mogrify. % any ideas why this wont work? Start there and let us know how you do. It is a good idea too to use the pear-imagick module which is a wraper for imageMagick. With this you can more easily deal with errors here is an example with the crop function: http://grincheux.codelutin.org/~monnier/doc/imagick/crop.php And the other exemples given in the package: http://grincheux.codelutin.org/~monnier/doc/imagick/ === If you use it in cli mode, think you can write errors like this: fwrite(STDERR, handle failed!\nReason: $reason\nDescription: $description\n); in stead of this: print handle failed!BR\nReason: $reasonBR\nDescription: $descriptionBR\n; === I am interseted in writing a simple application using php-gtk and php-imagick. If other peoples are interested in this project, just mail me to talk about this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Imagemagick
Ok i finally got the script going :) If anyones curious heres the code. exec($path_imagemagick.convert $path_picture -crop $height.x$width+$x+$y $path_picture2); Cameron Metzke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i have a script where people upload an image it is then renamed and is supposed to be cripped according to the values they submit but i cant seem to get it to crop it uploads and is renamed fine though. also i wish to use a static name so when another picture is uploaded the old one is overwritten that is why the input path and output path is the same. -Code-- exec($path_imagemagick.convert -crop 0x100+0+0 $imagepath.$filename $imagepath.$filename); -End Code-- any ideas why this wont work? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick Extension v0.2a Released (UPDATED)
I believe there have been a few starts and stops with a module in the past but I haven't found anything with the complete feature set. I intend to do that. I am going to be looking for help in the future but I'd like to get the current stuff closer to my goal. There a number of things on the list that I'd like to get done before asking others to help. I only need another few days before I push this to beta and start testing it on some live sites. Actually, one way to help now is to test it...perhaps compile it on an OS other then Linux and put it through some testing. I'm putting up a site for it now and will push another version by end of today. On Thu, 21 Nov 2002, Weston Houghton wrote: I had no idea anyone was actively working on something like this. Are you looking for help? Do you plan on perhaps making this a Sourceforge project, or something similar? Cheers and great job, Wes On Thursday, November 21, 2002, at 05:56 PM, Michael Montero wrote: Just released the next version of magick, the PHP ImageMagick extension. It is located here: http://apc.communityconnect.com/magick/magick-0.2a.tar.gz Here's the ChangeLog: November 21, 2002 0.2a o functions added: magick_rotate() magick_shear() magick_contrast() magick_equalize() magick_gamma() magick_level() magick_modulate() magick_negate() magick_normalize() magick_drawellipse() o slight changes to output of gen_configm4 o fixed comments in all examples after the initial magick_readimage(), they were wrong o fixed all examples so they exit properly on errors o fixed all examples so they work as either standalone script or web page; they do better output as well o fixed output of magick info. when calling phpinfo() o more commenting o significantly better error handling -- Michael C. Montero Chief Technology Officer Community Connect Inc. Co-founder [EMAIL PROTECTED] -=-=-=-=-= Community Connect Inc. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The Premier Source of Interactive Online Communities149 Fifth Avenue http://www.CommunityConnectInc.com/ New York, NY 10010 http://www.AsianAvenue.com/ http://www.BlackPlanet.com/ Click into Asian AmericaThe World Is Yours http://www.MiGente.com/ http://www.DiversityJobMarket.com/ The Power of LatinosIn partnership with The New York Times - Your Message May Appear Below This Line -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Michael C. Montero Chief Technology Officer Community Connect Inc. Co-founder [EMAIL PROTECTED] -=-=-=-=-= Community Connect Inc. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The Premier Source of Interactive Online Communities149 Fifth Avenue http://www.CommunityConnectInc.com/ New York, NY 10010 http://www.AsianAvenue.com/ http://www.BlackPlanet.com/ Click into Asian AmericaThe World Is Yours http://www.MiGente.com/ http://www.DiversityJobMarket.com/ The Power of LatinosIn partnership with The New York Times - Your Message May Appear Below This Line -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ImageMagick Extension v0.2a Released (UPDATED)
Just released the next version of magick, the PHP ImageMagick extension. It is located here: http://apc.communityconnect.com/magick/magick-0.2a.tar.gz Here's the ChangeLog: November 21, 2002 0.2a o functions added: magick_rotate() magick_shear() magick_contrast() magick_equalize() magick_gamma() magick_level() magick_modulate() magick_negate() magick_normalize() magick_drawellipse() o slight changes to output of gen_configm4 o fixed comments in all examples after the initial magick_readimage(), they were wrong o fixed all examples so they exit properly on errors o fixed all examples so they work as either standalone script or web page; they do better output as well o fixed output of magick info. when calling phpinfo() o more commenting o significantly better error handling -- Michael C. Montero Chief Technology Officer Community Connect Inc. Co-founder [EMAIL PROTECTED] -=-=-=-=-= Community Connect Inc. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The Premier Source of Interactive Online Communities149 Fifth Avenue http://www.CommunityConnectInc.com/ New York, NY 10010 http://www.AsianAvenue.com/ http://www.BlackPlanet.com/ Click into Asian AmericaThe World Is Yours http://www.MiGente.com/ http://www.DiversityJobMarket.com/ The Power of LatinosIn partnership with The New York Times - Your Message May Appear Below This Line -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick Extension v0.2a Released (UPDATED)
I had no idea anyone was actively working on something like this. Are you looking for help? Do you plan on perhaps making this a Sourceforge project, or something similar? Cheers and great job, Wes On Thursday, November 21, 2002, at 05:56 PM, Michael Montero wrote: Just released the next version of magick, the PHP ImageMagick extension. It is located here: http://apc.communityconnect.com/magick/magick-0.2a.tar.gz Here's the ChangeLog: November 21, 2002 0.2a o functions added: magick_rotate() magick_shear() magick_contrast() magick_equalize() magick_gamma() magick_level() magick_modulate() magick_negate() magick_normalize() magick_drawellipse() o slight changes to output of gen_configm4 o fixed comments in all examples after the initial magick_readimage(), they were wrong o fixed all examples so they exit properly on errors o fixed all examples so they work as either standalone script or web page; they do better output as well o fixed output of magick info. when calling phpinfo() o more commenting o significantly better error handling -- Michael C. Montero Chief Technology Officer Community Connect Inc. Co-founder [EMAIL PROTECTED] -=-=-=-=-= Community Connect Inc. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The Premier Source of Interactive Online Communities149 Fifth Avenue http://www.CommunityConnectInc.com/ New York, NY 10010 http://www.AsianAvenue.com/ http://www.BlackPlanet.com/ Click into Asian AmericaThe World Is Yours http://www.MiGente.com/ http://www.DiversityJobMarket.com/ The Power of LatinosIn partnership with The New York Times - Your Message May Appear Below This Line -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Imagemagick Mailinglist
Hi, I need some discussion about the imagemagick library. Does anyone know some about an good Imagemagick Mailinglist? Please send me some Links if you got some ;) Thanks very much Sascha
[PHP] Imagemagick
Hi, I want to use Imagemagick together with PHP, but I'm not able to find some documentation for it. I've read, that some people are buildung an PHP Module for Imagemagick. And how is the --with-imagemagick command working, when I compile PHP? Is it possible to compile Imagemagick into PHP on a Windows System for testing? Or is it just better to set up an Linux Webserver for my test runs. Where can I find some docs? PLEASE HELP Schura
[PHP] ImageMagick and Convert In PHP
I have exactly the same problem! Anyone who can help? /nicke Rick [EMAIL PROTECTED] wrote in message news:003701c1bb50$bda0e2e0$[EMAIL PROTECTED]; Hello All, Ok , I am about to loose my mind... this list is my last option i think :) this is what i have tried : system(convert -pen black -draw 'text 120,60 YourText Here' imageA.jpg imageB.jpg); The above does not work , the most i can get it imageA.jpg Becomes imageB.jpg but the text does not get drawn I striped the slashes, this does not work either, i su - to what my webserver runs on to see if i can run the system command via console, it works just fine , so i tried : $a = escapeshellcmd('-pen black -draw'); $b = escapeshellarg('text 120,20 YourTextHere); $c = escapeshellcmd(test.jpg doggy.jpg); system(convert $a $b $c); Same as the above, imageA becomes imageB and thats it. Permissions for testing are -rwxrwxrwx a basic test with system(convert -scale 500x600 imageA.jpg imageB.jpg); = Works Perfect I am sorry for coming to the list for help , but i am at a final loss, i have also tried shell_exec and exec to clear anything up. I have hit the imagemagick mail list and i got Php Might have some issues so if anyone can lend a hand to get that system command to work , i would be most appreciative. Best Wishes Rick Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick and Convert In PHP
Hi, I had problem with ImageMagick's identify. When trying to use with a shell command in PHP big problems! Why. Trace of identify showed that it wants to create a temporary file in the directory where the scripts is but the apache/php runs under nobody:nobody but the web directories are owned by andy:web . so identify fails. Maybe my problem and yours have something in commong. try : strace your_command_here and see the output. Best regards, Andrey Hristov - Original Message - From: Nicke [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 01, 2002 12:06 PM Subject: [PHP] ImageMagick and Convert In PHP I have exactly the same problem! Anyone who can help? /nicke Rick [EMAIL PROTECTED] wrote in message news:003701c1bb50$bda0e2e0$[EMAIL PROTECTED]; Hello All, Ok , I am about to loose my mind... this list is my last option i think :) this is what i have tried : system(convert -pen black -draw 'text 120,60 YourText Here' imageA.jpg imageB.jpg); The above does not work , the most i can get it imageA.jpg Becomes imageB.jpg but the text does not get drawn I striped the slashes, this does not work either, i su - to what my webserver runs on to see if i can run the system command via console, it works just fine , so i tried : $a = escapeshellcmd('-pen black -draw'); $b = escapeshellarg('text 120,20 YourTextHere); $c = escapeshellcmd(test.jpg doggy.jpg); system(convert $a $b $c); Same as the above, imageA becomes imageB and thats it. Permissions for testing are -rwxrwxrwx a basic test with system(convert -scale 500x600 imageA.jpg imageB.jpg); = Works Perfect I am sorry for coming to the list for help , but i am at a final loss, i have also tried shell_exec and exec to clear anything up. I have hit the imagemagick mail list and i got Php Might have some issues so if anyone can lend a hand to get that system command to work , i would be most appreciative. Best Wishes Rick Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ImageMagick and Convert In Php
Hello All, Ok , I am about to loose my mind... this list is my last option i think :) this is what i have tried : system(convert -pen black -draw 'text 120,60 YourText Here' imageA.jpg imageB.jpg); The above does not work , the most i can get it imageA.jpg Becomes imageB.jpg but the text does not get drawn I striped the slashes, this does not work either, i su - to what my webserver runs on to see if i can run the system command via console, it works just fine , so i tried : $a = escapeshellcmd('-pen black -draw'); $b = escapeshellarg('text 120,20 YourTextHere); $c = escapeshellcmd(test.jpg doggy.jpg); system(convert $a $b $c); Same as the above, imageA becomes imageB and thats it. Permissions for testing are -rwxrwxrwx a basic test with system(convert -scale 500x600 imageA.jpg imageB.jpg); = Works Perfect I am sorry for coming to the list for help , but i am at a final loss, i have also tried shell_exec and exec to clear anything up. I have hit the imagemagick mail list and i got Php Might have some issues so if anyone can lend a hand to get that system command to work , i would be most appreciative. Best Wishes Rick Wilson
[PHP] imagemagick and file size
Hi I decrease image size using imagemagick with the following command: function example() { $convert = cat $userfile | /usr/X11R6/bin/convert - $type:-; return `$convert`; } the returned binary value is uploaded to the DB. My main problem is that I don't know how to measure the decreased image size while its stored in the variable. -- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Imagemagick
Does anyone know if there are PHP specific bindings for ImageMagick out there? If not, anyone want to work on them... :) Thanks, Wes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Imagemagick
How do you mean bindings? I've used PHP and Imagemagick.. but only from the point of view of exec Do you mean building them into PHP functions? - Original Message - From: Weston Houghton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 22, 2001 11:05 PM Subject: [PHP] PHP Imagemagick Does anyone know if there are PHP specific bindings for ImageMagick out there? If not, anyone want to work on them... :) Thanks, Wes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Imagemagick
Yup, a native PHP module for ImageMagick that accesses their API. This would allow one to actually pass parameters a bit easier and test for success or failure more consistently, at least, I think it would... Wes How do you mean bindings? I've used PHP and Imagemagick.. but only from the point of view of exec Do you mean building them into PHP functions? - Original Message - From: Weston Houghton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 22, 2001 11:05 PM Subject: [PHP] PHP Imagemagick Does anyone know if there are PHP specific bindings for ImageMagick out there? If not, anyone want to work on them... :) Thanks, Wes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Imagemagick
So sprach »Weston Houghton« am 2001-07-22 um 15:14:54 -0700 : Yup, a native PHP module for ImageMagick that accesses their API. This would allow one to actually pass parameters a bit easier and test for success or failure more consistently, at least, I think it would... Hmm, don't know about ImageMagick, but have a look at php_imlib. Find the URL yourself! :) Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 0 hours 41 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP ImageMagick
In PHP I try to run a shell command with the following source code: $fotonaam = 'convert -font arial -pointsize 20 -gravity center -fill white -draw text 5,5 VERKOCHT image.jpg image2.jpg'; exec($fotonaam); PHP runs the program but the -draw text 5,5 VERKOCHT is not executed (there is no VERKOCHT in the image2.jpg). I tried everything but I can't solve the problem. Could somebody explain to me how it's possible that the program (convert) runs but there (seams to be) a problem with -draw text 5,5 VERKOCHT. If I run the same command troughs telnet/ssh as root or nobody it works fine Is it something with the and the combinative with the exec function (I also tried \)? Or is it because I run PHP in safe mode and the convert program tries to run a external program what is not in the . path (you now, the basic safe mode restriction)? Probably. Or maybe that program/lib just isn't in PHP's PATH. Try running it as nobody, but set your $PATH to first. Also, try using the optional parameters to http://php.net/exec so you can get some feedback from the OS about what error is happening, if any. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP ImageMagick
Did you try the escapeshellcmd () function ? - Russ --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshed51.com -Original Message- From: Jeffrey Barendse [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 8:01 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP ImageMagick In PHP I try to run a shell command with the following source code: $fotonaam = 'convert -font arial -pointsize 20 -gravity center -fill white -draw text 5,5 VERKOCHT image.jpg image2.jpg'; exec($fotonaam); PHP runs the program but the -draw text 5,5 VERKOCHT is not executed (there is no VERKOCHT in the image2.jpg). I tried everything but I can't solve the problem. Could somebody explain to me how it's possible that the program (convert) runs but there (seams to be) a problem with -draw text 5,5 VERKOCHT. If I run the same command troughs telnet/ssh as root or nobody it works fine Is it something with the and the combinative with the exec function (I also tried \)? Or is it because I run PHP in safe mode and the convert program tries to run a external program what is not in the . path (you now, the basic safe mode restriction)? Please help me.. I'm getting despaired on this in. ;-) Regards, Jeffrey Barendse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP ImageMagick
In PHP I try to run a shell command with the following source code: $fotonaam = 'convert -font arial -pointsize 20 -gravity center -fill white -draw text 5,5 VERKOCHT image.jpg image2.jpg'; exec($fotonaam); PHP runs the program but the -draw text 5,5 VERKOCHT is not executed (there is no VERKOCHT in the image2.jpg). I tried everything but I can't solve the problem. Could somebody explain to me how it's possible that the program (convert) runs but there (seams to be) a problem with -draw text 5,5 VERKOCHT. If I run the same command troughs telnet/ssh as root or nobody it works fine Is it something with the and the combinative with the exec function (I also tried \)? Or is it because I run PHP in safe mode and the convert program tries to run a external program what is not in the . path (you now, the basic safe mode restriction)? Please help me.. I'm getting despaired on this in. ;-) Regards, Jeffrey Barendse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]