Reply to Re: Change watermark size

Re: Change watermark size new!
by colin, 14 years ago
There is no direct way to do what you want.

However, you can first process your uploaded image, and save it somewhere. Then, you read image_dst_x and image_dst_y.

You instanciate another class, and resize your watermark to these dimensions you got. Once your watermark is ready, you instantiate the class a third time, and apply the new watermark to the image you previously uploaded.

Note that if you don't need to resize the uploaded image, you can prepare your watermark before calling process() on the uplaoded image, reading image_src_x and image_src_y instead.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important