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’…
Tag: image
Finding closest larger resolution with nearest aspect ratio in an array of resolutions
I have an array: I want to retrieve closest larger value with the nearest aspect ratio (same orientation). So, in case of $needle = ‘768×1280’ – 800×1280. And, in case of $needle = ‘320×240’ – 640×480. While the closest here is 480×640 it shouldn’t be matched, because its aspect ratio differs too much. So on, and so forth. Purpose: I
PHP – Unzip and convert images from .jpg to .bmp
I’ve a code that unzip files that I upload to my server, it works without any problem. But now I want to add another function. I want to convert all images that are in .zip file (.zip file only contains images) from .jpg format to .bmp. There is some easy way to do it? If there is not, at least
php/curl – get extension of image on remote server using headers
There is a form on my website that allows the upload of images from a remote server. When the user enters the link and submits, I want to check the file and make sure it’s the right extension before I …
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-convert-bmp-to-jpg-879135.html The script works fine when I pass a
Can I embed a .png image into an HTML page?
How can I embed a .png file into a blank “file.html” so that when you open that file in any browser you see that image? In this scenario, the image file is not linked to from the HTML, but …
Help Reading Binary Image Data from SQL Server into PHP
I cannot seem to figure out a way to read binary data from SQL server into PHP. I am working on a project where I need to be able to store the image directly in the SQL table, not on the file system. Currently, I have been using a query like this one: INSERT INTO myTable(Document) SELECT * FROM OPENROWSET(BULK
Images not showing up with https
Suddenly, my images are not showing up on my site when accessing https pages. No change in my code. My host did have to recompile their ftp service with SSL support after my request (so I could ftpes my site). Can’t thing of anything else that would affect my SSL cert. Same thing happens on FF and IE and on
Image resize issue in PHP – gd creates ugly resized images
I am creating thumbnails of fixed height and width from my PHP script using the following function and I call this function with following parameters but the problem is the resulting image is of very poor quality, when I perform the same operation with Adobe Photo shop, it performs a good conversion.. why it is so? I am unable to