I think you may have to look elsewhere for your answer as Imagemagick works in most of your situations but not with php. I would ask the question on a forum that has more users that know about Linux and servers.
I doubt it, since it works, it is just that some switches doesn't work like the ...
Search found 8 matches
- 2012-02-28T02:28:41-07:00
- Forum: Users
- Topic: Geometry suffix does not work in PHP, Linux
- Replies: 13
- Views: 20379
- 2012-02-27T13:38:09-07:00
- Forum: Users
- Topic: Geometry suffix does not work in PHP, Linux
- Replies: 13
- Views: 20379
Re: Geometry suffix does not work in PHP, Linux
It cannot be escaping, since:
exec("convert -pointsize 72 label:'50x50>' movie.jpg");
Produces image with text "50x50>"
Can someone test with php exec safe environment consisting of executables:
/usr/local/safe$ ls -la
total 320
drwxr-sr-x 2 root root 4096 Jan 31 18:23 .
drwxrwsr-x 17 root ...
exec("convert -pointsize 72 label:'50x50>' movie.jpg");
Produces image with text "50x50>"
Can someone test with php exec safe environment consisting of executables:
/usr/local/safe$ ls -la
total 320
drwxr-sr-x 2 root root 4096 Jan 31 18:23 .
drwxrwsr-x 17 root ...
- 2012-02-27T11:10:21-07:00
- Forum: Users
- Topic: Doing crop thumbnail without geometry suffix?
- Replies: 3
- Views: 7044
Re: Doing crop thumbnail without geometry suffix?
If you can't use '^' because your IM is too old. Their is a old solution :-) but it involves multiple resizes. :-(
http://www.imagemagick.org/Usage/resize/#space_fill
geometry suffixes should work via PHP, but you may need to double quote time. Once for PHP, and once for the shell PHP runs ...
http://www.imagemagick.org/Usage/resize/#space_fill
geometry suffixes should work via PHP, but you may need to double quote time. Once for PHP, and once for the shell PHP runs ...
- 2012-02-27T11:04:41-07:00
- Forum: Users
- Topic: Geometry suffix does not work in PHP, Linux
- Replies: 13
- Views: 20379
Re: Geometry suffix does not work in PHP, Linux
what version of IM?
It's in the parent post, at the comments: ImageMagick 6.6.0-4 2010-11-16 Q16
try
exec("/usr/bin/convert movie.jpg -thumbnail \"50x50>\" moviethumb.jpg 2>&1", $output, $rvar);
exec("/usr/bin/convert movie.jpg -thumbnail 50x50\> moviethumb.jpg 2>&1", $output, $rvar);
Neither ...
It's in the parent post, at the comments: ImageMagick 6.6.0-4 2010-11-16 Q16
try
exec("/usr/bin/convert movie.jpg -thumbnail \"50x50>\" moviethumb.jpg 2>&1", $output, $rvar);
exec("/usr/bin/convert movie.jpg -thumbnail 50x50\> moviethumb.jpg 2>&1", $output, $rvar);
Neither ...
- 2012-02-24T11:43:12-07:00
- Forum: Users
- Topic: Doing crop thumbnail without geometry suffix?
- Replies: 3
- Views: 7044
Doing crop thumbnail without geometry suffix?
Hi!
Is it possible to do this:
convert input.jpg -resize '100x200^' -gravity center -extent '100x200' output.jpg
Without the geometry suffix "^" and still get the same result somehow? Some other options perhaps?
Also I'm lookin a way to do this:
convert input.jpg -thumbnail '300x300 ...
Is it possible to do this:
convert input.jpg -resize '100x200^' -gravity center -extent '100x200' output.jpg
Without the geometry suffix "^" and still get the same result somehow? Some other options perhaps?
Also I'm lookin a way to do this:
convert input.jpg -thumbnail '300x300 ...
- 2012-02-24T11:29:44-07:00
- Forum: Users
- Topic: Geometry suffix does not work in PHP, Linux
- Replies: 13
- Views: 20379
Re: Geometry suffix does not work in PHP, Linux
You probably need to provide the full path to convert in your exec command.
Didn't work unfortunately. (I put the full path to the parent post) Thanks anyway.
I also noticed that all suffixes fail to work: !^><. Cannot understand this, it reports the version just right and it works just fine ...
Didn't work unfortunately. (I put the full path to the parent post) Thanks anyway.
I also noticed that all suffixes fail to work: !^><. Cannot understand this, it reports the version just right and it works just fine ...
- 2012-02-24T07:30:14-07:00
- Forum: Users
- Topic: Geometry suffix does not work in PHP, Linux
- Replies: 13
- Views: 20379
Geometry suffix does not work in PHP, Linux
Hi!
I know this could be a problem with my PHP, but here goes:
system("/usr/bin/convert -version"); // ImageMagick 6.6.0-4 2010-11-16 Q16
$output = array();
$rvar = -1;
echo "<pre>";
exec("/usr/bin/convert movie.jpg -thumbnail '50x50>' moviethumb.jpg", $output, $rvar);
var_dump($output, $rvar ...
I know this could be a problem with my PHP, but here goes:
system("/usr/bin/convert -version"); // ImageMagick 6.6.0-4 2010-11-16 Q16
$output = array();
$rvar = -1;
echo "<pre>";
exec("/usr/bin/convert movie.jpg -thumbnail '50x50>' moviethumb.jpg", $output, $rvar);
var_dump($output, $rvar ...
- 2011-05-07T08:49:46-07:00
- Forum: Bugs
- Topic: PNG 64 Colors -> XPM causes 256 colors
- Replies: 0
- Views: 4267
PNG 64 Colors -> XPM causes 256 colors
Hi!
First I save my image from Photoshop as 64 color PNG8, then I try to do this:
convert my.png my.xpm and I get following file:
/* XPM */
static char *add[] = {
/* columns rows colors chars-per-pixel */
"16 16 256 2",
" c None",
". c #F0F0F0",
"X c #F0F0F0",
"o c #F0F0F0",
"O c #F0F0F0",
"+ c ...
First I save my image from Photoshop as 64 color PNG8, then I try to do this:
convert my.png my.xpm and I get following file:
/* XPM */
static char *add[] = {
/* columns rows colors chars-per-pixel */
"16 16 256 2",
" c None",
". c #F0F0F0",
"X c #F0F0F0",
"o c #F0F0F0",
"O c #F0F0F0",
"+ c ...