473,729 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mogrify -draw text stopped working after upgrade

If anyone can recommend a more appropriate newsgroup for this question?

We recently upgraded from php 4.1.2 to php 4.3.9 and ImageMagick 5.5.7
to version 6.2.5.
I have a script that creates a random number image as a Turing Test,
and without changing that, it's stopped working right after the
upgrade.
But, only part of the mogrify command.

Here's the line I'm using:

$imagick = '/usr/local/bin/mogrify -pointsize 26 -draw \'text
'.$txRand.','.$ tyRand.' "'.$rand.'" \' -rotate '.$rRand.' -swirl
'.$sRand.' -charcoal 2 /var/www/html/verimgs/'.$mrand.'.gif' ;

exec("$imagick" );

PHP is executing the command OK, because it creates the image and does
the swirl and charcoal and the rotate, but it's not doing the -draw
part.

If I echo $imagick it's perfectly formatted:

/usr/local/bin/mogrify -pointsize 26 -draw 'text 17,23 "659"' -rotate 2
-swirl 25 -charcoal 2 /var/www/html/home/verimgs/97531.gif

I can run that line in a command shell and it will perform perfectly.

According to the ImageMagick site:

http://www.imagemagick.org/script/co...tions.php#draw

I'm formatting the -draw switch just right.
But still, it won't print the numbers onto the image.

I don't get it. What may have changed in the upgrade to prevent this
script from working the way it did before?

Thanks for any suggestions.
Liam

Nov 23 '05 #1
0 1559

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5213
by: Ian.H | last post by:
Hi all, I've been testing out some configs on this box out of curiousity more than anything, but looking at various sites and of course, php.net regarding safe_mode_exec_dir, it appears that if I specify a directory here, that binaries within should execute even with safe_mode enabled. I copied ImageMagick's mogrify binary to /safeweb/bin and included:
3
2666
by: Ming | last post by:
Hi All, I want to write a PHP webpage which allows people to upload images (no matter what formats) to me and at the same time converts any non-jpeg image to JPEG. Here's what I have: $FileDest = "/uploads/1.gif"; if (!move_uploaded_file($_FILES, $FileDest)):
6
5323
by: LRW | last post by:
I have a command I need to run in a shell: /usr/bin/mogrify -size 180x180 -colors 256 -colorspace RGB +profile "*" /usr/shipthumbs/*.tif I've tried doing this: $mog = "/usr/bin/mogrify -size 180x180 -colors 256 -colorspace RGB +profile \"*\" /usr/shipthumbs/*.tif"; exec("$mog 2>&1", $output);
7
9750
by: LRW | last post by:
Sorry to crosspost, but I have no idea if this is more a PHP question of general Linux question. I have a script that makes changes to image files, montages them into a jpg, and creates a Web page with that image. It starts with someone from our graphics dept. who I set up to copy the image files over to the Linux server with SAMBA. The files gain the owner/group of "nobody" and permissions of 744.
0
2321
by: JaNE | last post by:
Can anyone give me some simple function for resizing images and thumbnail creation with image magick (I can't install GD2 on my Mac (OSX v.10.3.5))? I have functional upload function (well, not function, but part of script...) and now I need to create thumbnails. but how? I think I will use this set of lines: $smal = "150";
5
2372
by: K | last post by:
I have found a script online that I want to use (I am new to PHP). It creates dynamic images based on the text that you pass it. However, no matter how I try, I can't get anything other than a blank white image. Can one of you knowledgeable people please have a look at the code below and help please.
0
8927
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8764
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9289
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8159
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4534
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2694
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.