Search found 2972 matches

by Bonzo
2006-06-06T11:07:23-07:00
Forum: Users
Topic: Display \n in the text
Replies: 3
Views: 13517

Your lucky vav as I can not get anything to do with text to work :cry: Can you post your code or PM me a copy so I can see if it works on my server ? Back to your question; I am not sure what you want to display. Do you want your label to say test \n test ? Have you tried "test\ntest" inst...
by Bonzo
2006-06-06T11:01:49-07:00
Forum: Users
Topic: Extract multiple images from the one source image?
Replies: 3
Views: 13749

Code: Select all

<?php
exec("/usr/local/bin/convert earth.jpg -crop 200x200 image-%d.jpg");
?> 
Example
http://www.rubblewebs.co.uk/imagemagick/section.php

Anthony
by Bonzo
2006-06-05T15:05:03-07:00
Forum: Users
Topic: how to use native imagemagick extension from a php script
Replies: 7
Views: 27014

I have no idea about binary data etc. but the general php format to create a thumbnail I used is : exec("/usr/local/bin/convert -size {$size[0]}x{$size[1]} $original_image -thumbnail $max_widthx$max_height $new_image"); This was written to be used with a form. I found it hard to save to th...
by Bonzo
2006-05-29T09:53:30-07:00
Forum: Users
Topic: Disappointed...
Replies: 4
Views: 15163

Yes I found that link last week magick; I still can not understand why anything to do with text will not work on my server setup. It seems like quite a few people want to work with ImageMagick and php but there do not seem to be many people who know how it works. I have been trying a lot of the exam...
by Bonzo
2006-05-29T03:20:03-07:00
Forum: Users
Topic: Another text watermark question
Replies: 4
Views: 17578

Very much a bodge as far as I am concerned but I have had to resort to creating an image out of letters and then combining the two images to create a text watermark. I need to create some decent gif letter files, and a method of picking the letter images depending on the string of text I want on the...
by Bonzo
2006-05-27T15:42:11-07:00
Forum: Users
Topic: Disappointed...
Replies: 4
Views: 15163

The second link is an interesting site ridera. I agree with your coments about people not being very helpful on this forum and I hear it a lot when discussing ImageMagick on other forums. I want to use ImageMagick with php and I am not sure if the moderators etc. actualy know much about how to do th...
by Bonzo
2006-05-23T14:42:46-07:00
Forum: Users
Topic: New to imagemagick. Can't figure out a task I want to do.
Replies: 2
Views: 11147

I would think you need something like this but it does not work ! If I get time and nobody else comes up with an answer I will have another look at it. Anthony <!doctype html public "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Table of images</title> </head> <body> <?php // Directory ...
by Bonzo
2006-05-23T10:52:57-07:00
Forum: Users
Topic: Another text watermark question
Replies: 4
Views: 17578

Oh well after about 20 hours at the weekend trying to get this to work I have decided to give up and go back to GD. I have tried every example I can find and used everything I can think of to get the path to a font but everything fails. The thing is thinking about this I had the same problem 3-4 yea...
by Bonzo
2006-05-22T10:59:11-07:00
Forum: Users
Topic: 1st script help: creating/saving thumbs on shared host
Replies: 7
Views: 25936

I have rewritten your code bluecrisis and it should now work; I didn't do this before but should have done sorry. It was not uploading and resizing the image as you didn't have the filename in the getimagesize so the code would have failed there. Trying the code out on my server as you say you get t...
by Bonzo
2006-05-21T11:44:10-07:00
Forum: Users
Topic: 1st script help: creating/saving thumbs on shared host
Replies: 7
Views: 25936

This seemed to work OK ridera.

{$size[0]}x{$size[1]}

Anthony
by Bonzo
2006-05-21T10:46:10-07:00
Forum: Users
Topic: Another text watermark question
Replies: 4
Views: 17578

After messing about with this all weekend I have decided my problem must be to do with the location of the font ? I can resize images OK and I can add a watermark logo to the image OK but when ever I try anything to do with text it fails. I have tried adding a text watermark, label and something els...
by Bonzo
2006-05-21T06:48:41-07:00
Forum: Users
Topic: 1st script help: creating/saving thumbs on shared host
Replies: 7
Views: 25936

I have done some more tests and it is strange that this will work: $original_image = "earth.jpg"; $size=GetImageSize( $original_image ); $new_image = "new2.jpg"; $max_width = "200"; $max_height = "90"; exec("/usr/bin/composite -size 733x567 $original_imag...
by Bonzo
2006-05-21T05:00:12-07:00
Forum: Users
Topic: 1st script help: creating/saving thumbs on shared host
Replies: 7
Views: 25936

Try this : $convert = '/homepages/----/htdocs/ImageMagick-6.2.7/bin/convert -size '.$image_info[1].' '.$srcimg.' -geometry '.$imgHeight.' '.$destimg; I am not sure but when I hard coded the paths etc into the $convert line it worked OK but when using variables it seemed to fail although I have tried...
by Bonzo
2006-05-21T04:16:28-07:00
Forum: Users
Topic: 1st script help: creating/saving thumbs on shared host
Replies: 7
Views: 25936

I have tried your code on my server and all I get is the error message. I had to modify this line : $convert = '/homepages/----/htdocs/ImageMagick-6.2.7/bin/convert -size x'.(imgHeight*2).' '.$srcimg.' -thumbnail x'.$imgHeight.' '.$destimg; To this as you only have the height and not the width and a...
by Bonzo
2006-05-21T02:27:46-07:00
Forum: Users
Topic: 1st script help: creating/saving thumbs on shared host
Replies: 7
Views: 25936

The problem with ImageMagick and shell is that from what I understand it does not return any error messages.

You probably know as much about ImageMagick as me now but I will have a look later today and see if I can see anything !

Anthony