|
| WM20 Android: Compress jpeg |
| Iniciado por guest, 07,sep. 2015 22:24 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 07,septiembre 2015 - 22:24 |
Hi All,
I have a jpeg saved at 480x360 pixels using VideoGenerateThumbnail, which is around 122kb. If I save it with 80% quality on Irfanview, the file is 23kb.
Is there a way to compress the jpeg in WD Mobile? I have seen this can be done using java but have no idea how to run the code etc.
Thanks
Pete |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,septiembre 2015 - 11:50 |
Hi Pete,
dsaveImageJPG accepts a compression parameter... So if you load your image in ana image field and save it again, that should do the trick
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,septiembre 2015 - 14:59 |
Thanks Fabrice, that has done it.
The image field is sized 400x300 and produces a 800x600 jpeg, which is fine, but will this come out the same size on different devices?
Also, I can't find a 'sharpen image' function - have I missed it or does it not exist?
Cheers Pete |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,septiembre 2015 - 15:19 |
Hi Peter,
The image field is sized 400x300 and produces a 800x600 jpeg, which is fine, but will this come out the same size on different devices?
My understanding is that the captured image size is the default value for each specific phone, ie different on each phone.
However, when you load the image into your image to resave it, it's size becomes the size of YOUR image, so you can make it whatever you want, as this image field does not have to be visible (you can put it on the left of your window, if you want.
Also, I can't find a 'sharpen image' function - have I missed it or does it not exist?
AFAIK, it does not.
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Already there: WXShowroom.com, WXReplication (open source) Coming soon: WXEDM (open source) More information on http://www.fabriceharari.com > Pete |
| |
| |
| | | |
|
| | | | |
| | |
|