Here a comparison : http://watchwolf.fr/public/evas_jpeg_loader_saver_quality_problem.jpg
The problem seems to be related to the difference between 2 colors (dark/bright). Biggest the difference is, more fast the quality is lost. I save my files into tho same format that the original. 2009/10/27 Vincent Torri <[email protected]> > > > On Tue, 27 Oct 2009, Gustavo Sverzut Barbieri wrote: > > On Tue, Oct 27, 2009 at 8:31 AM, Vincent Torri <[email protected]> >> wrote: >> >>> >>> >>> 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. >>> >> >> Well, we cannot just say that. We experienced the same problem as >> watchwolf and it suck. We just ignored it for now, but it suck to open >> the same file 1000's times and get it to really awful quality. >> >> I understand once things are lost we cannot recover, but if the >> formula is correct you should loose and then encode to same quality >> and it should not have "losses" anymore as values would match. >> >> As gimp and other tools do that, I guess we're bogus in some path. >> Either decode or encode. >> > > maybe the lossless compression in jpeg is not supported in evas. I didn't > check that. > > Vincent -- Regards. ------------------------------------------------------------------------------ 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
