Solved

PHP/ImageMagick problem making drop shadow

Posted on 2007-04-01
3
628 Views
Last Modified: 2010-08-05
This does not work.

Can anyone please fix it?  Thanks!


                  exec("/usr/local/bin/convert ' . escapeshellarg($im_path . $row->ImageFile) . ' -resize ' . escapeshellarg($Thumb_Width . 'x' . $Thumb_Height . '>') . ' +profile "*" ' . ' -crop '. escapeshellarg($Thumb_Width . 'x' . $Thumb_Height . '+0+0').' +repage -bordercolor red  -border 1 -bordercolor white -border 4 -bordercolor green -background black \\( +clone -shadow 60x4+4+4 \\) +swap  -background blue -flatten  +repage -quality 98 ".escapeshellarg($im_path . 'vita/' . $row->ImageFile), $x, $result);

0
Comment
Question by:hankknight
3 Comments
 
LVL 6

Accepted Solution

by:
deresh earned 500 total points
ID: 18834726
exec("/usr/local/bin/convert " . escapeshellarg($im_path . $row->ImageFile) . ' -resize ' . escapeshellarg($Thumb_Width . 'x' . $Thumb_Height . '>') . ' +profile "*" ' . ' -crop '. escapeshellarg($Thumb_Width . 'x' . $Thumb_Height . '+0+0').' +repage -bordercolor red  -border 1 -bordercolor white -border 4 -bordercolor green -background black \\( +clone -shadow 60x4+4+4 \\) +swap  -background blue -flatten  +repage -quality 98 '.escapeshellarg($im_path . 'vita/' . $row->ImageFile), $x, $result);

there you are, you have wrongly mixed " and ' . don't you use some editor with syntax higlighting ?!

0
 
LVL 16

Author Comment

by:hankknight
ID: 18835537
I use notepad. (Yea, I know I'm crazy!) A good editor might save me some time.....  Any good SIMPLE free editors?
0
 
LVL 1

Expert Comment

by:ajay_chamarthy
ID: 18835583
There you are you did some basic syntax errors as deresh mentioned in using " and '.
I am using Editplus .i downloaded as a trail version and it is working after the time limit also
exec("/usr/local/bin/convert " . escapeshellarg($im_path . $row->ImageFile) . ' -resize ' . escapeshellarg($Thumb_Width . 'x' . $Thumb_Height . '>') . ' +profile "*" ' . ' -crop '. escapeshellarg($Thumb_Width . 'x' . $Thumb_Height . '+0+0').' +repage -bordercolor red  -border 1 -bordercolor white -border 4 -bordercolor green -background black \\( +clone -shadow 60x4+4+4 \\) +swap  -background blue -flatten  +repage -quality 98 '.escapeshellarg($im_path . 'vita/' . $row->ImageFile), $x, $result);

All the best dude :-)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now