Skip to content

Tag: gd

Convert tiff to jpg in php?

I have a server which holds TIFF images. Most clients can read and display TIFF images, so there’s no problem. However, some clients can’t handle this format but can handle JPG. I thought of using PHP’…

Converting BMP to JPG in PHP

In a site I’m developing I need to be able to pass all my images through imagejpeg(), so I decided (as my site only accepts JPG, BMP + PNG uploads) to simply convert BMPs and PNGs to a JPG first. Now to convert the BMP I used the script found here: http://forums.codewalkers.com/php-coding-7/how-to-conve…

Resize PNG image in PHP

I’m getting a no image display when resizing PNG however the following code works for JPEG. I’ve put the headers in but for some reason I’m doing something wrong for png images. Answer Last argument in imagepng($image_p, null, 100) should be between 0 and 9.

How to create transparent watermark on an image using gdlibrary? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question How to create transparent watermark on an image using gd library? I want to rotate the image…