On Tue, 27 Oct 2009, Atton Jonathan wrote:
> hey, > > I load and save a jpg image into a file a couple of time ( load im1 - save > under im2 - load im2 - save under im3 ... ). Each time I lost more data in > my image, sounds like we can't save an evas object image into a jpeg file > without lost :/ jpeg is a lossy encoder (though it can do lossless too). If you want lossless compression, encode in png. > my code is simple : > > Evas_Object *obj = evas_object_image_add(evas); > evas_object_image_file_set(obj, file, NULL); > > evas_object_image_save(obj, res, NULL, "quality=100 compress=1"); > evas_object_del(obj); > > I try with compress = -1 | 0 | 1 | 100 and with quality = 0 | 100. > > Is there a way to save a jpeg lossly with evas ? I don't know, but I think that png is better than lossless jpeg. Vincent ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
