Jump to content

Image DPI


The Little Guy

Recommended Posts

Hi.

 

I allow users to upload images, the user then is able to adjust several settings for the image:

- Image quality (10 - 100)

- watermark position(s) (top left/right, middle, bottom left/right)

 

when the user adjusts the quality, the original image is never affected by this change, so he/she can set it to 10, then change it back to 100 if he/she wanted, and the image quality is preserved.

 

Is there a way for me to get the images quality or dpi of the original image?

Link to comment
https://forums.phpfreaks.com/topic/192544-image-dpi/
Share on other sites

Not really, you could make a guess based on width/height vs kb/mb. PHP can read exif info from jpg's but it is not reliable and probably does not contain what you want, varies between camera mfg's and windows can/will sometimes wipe it out on transfer from camera to computer. DPI has no bearing on monitor display, only for gauging/controlling printed size.

 

 

HTH

Teamatomic

Link to comment
https://forums.phpfreaks.com/topic/192544-image-dpi/#findComment-1014450
Share on other sites

If you check out this image:

http://www.nawdog.com/view/8

 

I have text that reads: Quality Reduced By: 90% is that sufficient enough, or should I say is that the best reading I am going to get?

 

The image that you see there actually has a 90% better resolution than what you currently see

Link to comment
https://forums.phpfreaks.com/topic/192544-image-dpi/#findComment-1014454
Share on other sites

The image is uploaded, then the user changes the settings for the image, such as image quality, and when the image is reproduced with the GD library, it reads the settings and if it is 10% quality, I just subtract 100 - 10 and get 90% reduced...

 

but I would really like to say what its original quality is.

Link to comment
https://forums.phpfreaks.com/topic/192544-image-dpi/#findComment-1014633
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.