Search found 2972 matches

by Bonzo
2007-08-24T06:20:25-07:00
Forum: Users
Topic: What is wrong in my code
Replies: 4
Views: 8812

Re: What is wrong in my code

Try this; you will need to adapt it to your method of coding but it works for me: $file_from = $params['file_from']; $need_y = $params['need_y']; $need_x = $params['need_x']; $file_to = $params['file_to']; exec("convert $file_from -resize x{$need_y} -quality 85 -crop {$need_x}x{$need_y}+0+0 +re...
by Bonzo
2007-08-24T01:22:50-07:00
Forum: Users
Topic: What is wrong in my code
Replies: 4
Views: 8812

Re: What is wrong in my code

You could try: $exec = $app->cfg['ImageMagick']['path'] . 'convert ' . '"' . $params['file_from'] . '"' . ' -resize x' . $params['need_y'] . ' -quality 85 -crop ' . $params['need_x'] . 'x' . $params['need_y'] . '+0+0 +repage -pointsize 50 -font Arial -fill rgba\(0,0,0,0.4\) -gravity South ...
by Bonzo
2007-08-24T01:08:27-07:00
Forum: Users
Topic: Centered on a black background
Replies: 5
Views: 10928

Re: Centered on a black background

I am glad you got what you wanted nic.

The -size 200x200 will speed up the resizing of jpgs. I do not know how much it speeds it up and it can be left out.
I use php and put the original size of the image in there using getimagesize( ).
by Bonzo
2007-08-23T11:44:22-07:00
Forum: Users
Topic: perl equivalent to "convert image.pdf image.jpg"
Replies: 7
Views: 16642

Re: perl equivalent to "convert image.pdf image.jpg"

API = Application programming interface ( http://en.wikipedia.org/wiki/Application_programming_interface ) I think basicly its another language to run the first language and supposedly simplify it :? From what I understand MagicWand, PerlMagic are API's along with things like the one used to produce...
by Bonzo
2007-08-23T10:26:24-07:00
Forum: Users
Topic: perl equivalent to "convert image.pdf image.jpg"
Replies: 7
Views: 16642

Re: perl equivalent to "convert image.pdf image.jpg"

If you look on the index page of my site near the bottom I have some Perl scripts and there outputs I have "borrowed" from other sites. See if they work?

It does not work like php you need to use an API ?
by Bonzo
2007-08-23T10:21:12-07:00
Forum: Users
Topic: Centered on a black background
Replies: 5
Views: 10928

Re: Centered on a black background

Try this:

Code: Select all

convert -size 75x75 xc:black -size 200x200 tall.jpg -resize 50 -gravity center -composite tall_pad.jpg
-size 75x75 xc:black = Create the black background
-size 200x200 tall.jpg -resize 50 = Resize the image
-gravity center -composite = Put the second image ontop of the first
by Bonzo
2007-08-23T10:13:45-07:00
Forum: Users
Topic: perl equivalent to "convert image.pdf image.jpg"
Replies: 7
Views: 16642

Re: perl equivalent to "convert image.pdf image.jpg"

You will need to look at Perlmagick - I know nothing about it but it needs some Perl code installed on the server.
There is a PerlMagick section on the forum along with some examples here http://www.imagemagick.org/script/perl-magick.php

It is probably similar to MagickWand ?
by Bonzo
2007-08-22T12:30:56-07:00
Forum: Users
Topic: Batch Jpeg to Cineon conserving filenames
Replies: 1
Views: 4687

Re: Batch Jpeg to Cineon conserving filenames

http://www.imagemagick.org/script/mogrify.php Finally, we convert all our PNG images to the JPEG format: mogrify -format jpg *.png Here image files 1.png, 2.png, etc., are left untouched and files 1.jpg, 2.jpg, etc., are created. They are copies of their respective PNG images except are stored in th...
by Bonzo
2007-08-22T12:26:54-07:00
Forum: Users
Topic: batch watermarking?
Replies: 4
Views: 11317

Re: batch watermarking?

This might work but untested THIS WILL OVERWRIGHT THE ORIGINAL IMAGES and will only work with jpgs.

Code: Select all

mogrify -watermark 30% -gravity Southeast watermark.png  *.jpg
by Bonzo
2007-08-22T08:01:42-07:00
Forum: Users
Topic: How to zoom on a image
Replies: 2
Views: 10801

Re: How to zoom on a image

This will crop the image and possibly resize it; I always tend to be resizing smaller not increasing the size.

Code: Select all

convert original.jpg -crop 125x125+0+0 -resize 250x250 new_image.jpg
by Bonzo
2007-08-21T13:00:36-07:00
Forum: Users
Topic: PHP produces emty mvg file
Replies: 4
Views: 10579

Re: PHP produces emty mvg file

At a guess I would say most of your problem is escapeshellarg as that will be putting extra " around your values. I would say you do not need escapeshellarg here escapeshellarg('viewbox 0 0 %[fx:w+7] %[fx:h+7] fill red roundRectangle 1,1 %[fx:w+5] %[fx:h+5] 5,5') anyway as the values are genera...
by Bonzo
2007-08-20T14:11:11-07:00
Forum: Users
Topic: GUI interface.
Replies: 2
Views: 7022

Re: GUI interface.

There is a lot of learning involved with ImageMagick but if you want to do something straight forward there are a lot of examples around you could modify. Anthony has his example site of most if not all of the comands http://www.imagemagick.org/Usage/ Most of my examples are written with php in mind...
by Bonzo
2007-08-20T09:29:38-07:00
Forum: Users
Topic: Problems with pdf to jpg (I already serached the forum)
Replies: 9
Views: 17679

Re: Problems with pdf to jpg (I already serached the forum)

You are beyond me now; I can get the code to run but have no idea how it works !

Hopefuly magick or Anthony can help you out.
by Bonzo
2007-08-20T08:37:22-07:00
Forum: Users
Topic: Problems with pdf to jpg (I already serached the forum)
Replies: 9
Views: 17679

Re: Problems with pdf to jpg (I already serached the forum)

The code below works for me // Convert whole pdf document - 3 pages to 3 images exec("convert instructions.pdf instructions.jpg"); // Convert first page to image exec("convert instructions.pdf[0] instructions_1.jpg"); Dose this give you any output ? exec("convert instruction...
by Bonzo
2007-08-16T13:15:58-07:00
Forum: Users
Topic: Cannot display EXIF JPG for the life of me...
Replies: 2
Views: 6334

Re: Cannot display EXIF JPG for the life of me...

What code are you using ? are you getting any output ?

This code works for me on my server:

Code: Select all

identify -format \"%[EXIF:Make]\" sunflower.jpg