jwlai
04-27-2001, 05:23 AM
PHP Gurus,
I am using PHP image functions to add url of my website to my photos. Basically, I use ImageCopyMerge() to merge original JPG file & another[nbsp][nbsp]image file which contain my url. Then output this new photo by ImageJPEG().
Here is an example after merge:
http://www.zhoujie.com/photo/showpic.php?InFile=../photo3/p03.jpg
RIght now I am using default quality setting with ImageJPEG, which is 75. The picture quality is degraded since this setting is lower than original file setting.
I know I can control the JPEG compress rate when I call ImageJPEG(). However, every photo in my site has different compressing rate. I don't want to use a universal value, I just want to use the same compression rate as the original JPEG file.
How do I get the compression rate from my original JPEG file?
------------------
Jerry
Taipei, Taiwan
I am using PHP image functions to add url of my website to my photos. Basically, I use ImageCopyMerge() to merge original JPG file & another[nbsp][nbsp]image file which contain my url. Then output this new photo by ImageJPEG().
Here is an example after merge:
http://www.zhoujie.com/photo/showpic.php?InFile=../photo3/p03.jpg
RIght now I am using default quality setting with ImageJPEG, which is 75. The picture quality is degraded since this setting is lower than original file setting.
I know I can control the JPEG compress rate when I call ImageJPEG(). However, every photo in my site has different compressing rate. I don't want to use a universal value, I just want to use the same compression rate as the original JPEG file.
How do I get the compression rate from my original JPEG file?
------------------
Jerry
Taipei, Taiwan