From: Francesco Z. <fra...@gm...> - 2008-04-23 11:16:23
|
found some inconsistencies in the Thumb files generated when trying to sync a photo to the ipod touch (svn-revision 1964) The involved files for the Photo library (not iTunes ArtWork) are according to http://forums.ilounge.com/showthread.php?t=66435 F3004_1.ithmb: This file contains a 64x64 16-bit bitmap image, presumably used as a thumbnail for the photo browser view. F3008_1.ithmb: This file contains a 640x480 image for full screen display. Although the iPhone and iPod touch screens are only 320x480, the zoom feature necessitates a higher-resolution image. F3009_1.ithmb: This file contains a 160x128 image, presumably pre-formatted for e-mailing. F3011_1.ithmb: Another mystery: a 12,640 byte 16-bit bitmap image is stored in this file. The only resolution that seems to make sense is 80x79, although it is not clear where this is used on the device itself. Now I noticed that when gtkpod saves the file F3009_1.ithmb on the ipod, the size of the file F3009_1 does not increase (as it does when syncing with iTunes) of the proper amount. To be more precise: file increases only 160x120x2=38400bytes instead of 160x128x2=40960bytes . I tried to hack the code for Itdb_ArtworkFormat ipod_touch_1_artwork_info[] changing ITDB_THUMB_PHOTO_FULL_SCREEN --> 160, 128 and adding padding to 40960 Both solution produced correct sizes, but neither of them resulted in a "good" photo db for the ipod touch photo viewer. Looking at the thumb file with hexedit it seems to me that the "encoding" of the photo is not correct either ... but i shall admin I'm not expert in picture formats. I hope this helps. Can somebody tell me what is the "status" for photo syncronization in the ipod touch ? Thanks Francesco |