[PHP] Know the Compression Rate
Reivax962
Posted messages
3742
Status
Membre
-
Reivax962 Posted messages 3742 Status Membre -
Reivax962 Posted messages 3742 Status Membre -
Hello,
I wrote a PHP script that loads an image, rotates it, and saves it.
My problem is that I want the saving to occur in the same format (jpeg, png, or other) and especially with the same compression rate as the original image.
For the format, it's not an issue; I just need to check the file name.
But is there a way to know the compression rate of a jpeg or png image in PHP?
Thank you,
Xavier
Configuration: Windows XP / Firefox 3.6.9
I wrote a PHP script that loads an image, rotates it, and saves it.
My problem is that I want the saving to occur in the same format (jpeg, png, or other) and especially with the same compression rate as the original image.
For the format, it's not an issue; I just need to check the file name.
But is there a way to know the compression rate of a jpeg or png image in PHP?
Thank you,
Xavier
Configuration: Windows XP / Firefox 3.6.9