Best way to reduce image quality
Posted: Thu Jun 10, 2021 11:54 pm
Evening All
I hope that everyone is well.
I am looking for a better way to reduce the quality of an image and thus reduce the number of Kilobytes that the image uses.
I currently:
- take a photo with the iPhone Camera using moblepickphoto
- Display the photo in LiveCode
- Reduce the dimensions of the photo... i.e. set height to y, set width to x
- Take a snapshot of the photo
- Save the snapshot to my Database
This does reduce the image Kilobytes (but not by much), and it also very quickly reduces the image quality to a sub-par level.
If I manually carry out the equivalent process using Preview on Mac I can make a much smaller kb image that is still of a relatively good quality.
If anyone can shed any light on a more efficient method to reduce image file size then it would be much appreciated.
Many Thanks
I hope that everyone is well.
I am looking for a better way to reduce the quality of an image and thus reduce the number of Kilobytes that the image uses.
I currently:
- take a photo with the iPhone Camera using moblepickphoto
- Display the photo in LiveCode
- Reduce the dimensions of the photo... i.e. set height to y, set width to x
- Take a snapshot of the photo
- Save the snapshot to my Database
This does reduce the image Kilobytes (but not by much), and it also very quickly reduces the image quality to a sub-par level.
If I manually carry out the equivalent process using Preview on Mac I can make a much smaller kb image that is still of a relatively good quality.
If anyone can shed any light on a more efficient method to reduce image file size then it would be much appreciated.
Many Thanks