adric: books icon (c) 2004 adric.net (Default)
adric ([personal profile] adric) wrote2010-03-27 05:29 pm
Entry tags:

OOO Impress and Bitmap files

So I'm attempting to investigate a file save bug report for class and not making much progress with that. I did trip over some behaviour that seems odd to me: OOO process BMP to PNG silently and mercilessly when you add one to a presentation, and when you save it. This is odd because it does not do this to gif, png, or jpg. Gif, png, and jpg files came through the process fine, though they were renamed. I just checked a tif and it was also unaffected (renamed but checksums match).

Must be a feature?


lorelei-lee-long:bbst adric$ cp ~/Documents/graphics\ in\ oodev.odp .
lorelei-lee-long:bbst adric$ unzip -l graphics\ in\ oodev.odp
Archive: graphics in oodev.odp
Length Date Time Name
-------- ---- ---- ----
47 03-27-10 21:14 mimetype
0 03-27-10 21:14 Configurations2/statusbar/
0 03-27-10 21:14 Configurations2/accelerator/current.xml
0 03-27-10 21:14 Configurations2/floater/
0 03-27-10 21:14 Configurations2/popupmenu/
0 03-27-10 21:14 Configurations2/progressbar/
0 03-27-10 21:14 Configurations2/menubar/
0 03-27-10 21:14 Configurations2/toolbar/
0 03-27-10 21:14 Configurations2/images/Bitmaps/
9197 03-27-10 21:14 Pictures/1000020100000078000000603823342A.png
2719336 03-27-10 21:14 Pictures/10000000000006900000041A1A90FC16.png
3025 03-27-10 21:14 Pictures/10000000000000730000007C16DB7F44.gif
50696 03-27-10 21:14 Pictures/1000000000000280000001E046E2A04A.jpg
16561 03-27-10 21:14 content.xml
44242 03-27-10 21:14 styles.xml
1208 03-27-10 21:14 meta.xml
27517 03-27-10 21:14 Thumbnails/thumbnail.png
9426 03-27-10 21:14 settings.xml
2468 03-27-10 21:14 META-INF/manifest.xml
-------- -------
2883723 19 files
lorelei-lee-long:bbst adric$ unzip graphics\ in\ oodev.odp
Archive: graphics in oodev.odp
extracting: mimetype
creating: Configurations2/statusbar/
inflating: Configurations2/accelerator/current.xml
creating: Configurations2/floater/
creating: Configurations2/popupmenu/
creating: Configurations2/progressbar/
creating: Configurations2/menubar/
creating: Configurations2/toolbar/
creating: Configurations2/images/Bitmaps/
extracting: Pictures/1000020100000078000000603823342A.png
extracting: Pictures/10000000000006900000041A1A90FC16.png
extracting: Pictures/10000000000000730000007C16DB7F44.gif
extracting: Pictures/1000000000000280000001E046E2A04A.jpg
inflating: content.xml
inflating: styles.xml
extracting: meta.xml
inflating: Thumbnails/thumbnail.png
inflating: settings.xml
inflating: META-INF/manifest.xml
lorelei-lee-long:bbst adric$ cd Pictures/
lorelei-lee-long:Pictures adric$ ls
10000000000000730000007C16DB7F44.gif 10000000000006900000041A1A90FC16.png
1000000000000280000001E046E2A04A.jpg 1000020100000078000000603823342A.png
lorelei-lee-long:Pictures adric$ md5sum *.png
222d5804a7d7de1d58d46fe0bf0af0fb 10000000000006900000041A1A90FC16.png
ceca1ac1304d34dd7c8f8f8823d180b9 1000020100000078000000603823342A.png
lorelei-lee-long:Pictures adric$ md5sum ~/Pictures/splortch-thing-100.png
ceca1ac1304d34dd7c8f8f8823d180b9 /Users/adric/Pictures/splortch-thing-100.png
lorelei-lee-long:Pictures adric$ md5sum ~/Pictures/sophia\ and\ mavia\ on\ the\ arcane\ carpet.bmp
ae378124bd2e32f8f2f5aa90e55e99ab /Users/adric/Pictures/sophia and mavia on the arcane carpet.bmp
lorelei-lee-long:Pictures adric$ md5sum ~/Pictures/unix_critter.gif e1544c63a3d4dec53af6f223cbe441d1 /Users/adric/Pictures/unix_critter.gif
lorelei-lee-long:Pictures adric$ md5sum 8.gif
8.gif: No such file or directory
lorelei-lee-long:Pictures adric$ md5sum *.gif
e1544c63a3d4dec53af6f223cbe441d1 10000000000000730000007C16DB7F44.gif
lorelei-lee-long:Pictures adric$ stat 10000000000006900000041A1A90FC16.png
234881026 30336333 -rw-r--r-- 1 adric staff 0 2719336 "Mar 27 17:17:07 2010" "Mar 27 21:14:28 2010" "Mar 27 17:16:47 2010" "Mar 27 17:16:46 2010" 4096 5312 0 10000000000006900000041A1A90FC16.png
lorelei-lee-long:Pictures adric$ du -h 10000000000006900000041A1A90FC16.png
2.6M 10000000000006900000041A1A90FC16.png
lorelei-lee-long:Pictures adric$ du -h ~/Pictures/sophia\ and\ mavia\ on\ the\ arcane\ carpet.bmp
5.1M /Users/adric/Pictures/sophia and mavia on the arcane carpet.bmp
lorelei-lee-long:Pictures adric$ open ~/Pictures/sophia\ and\ mavia\ on\ the\ arcane\ carpet.bmp 10000000000006900000041A1A90FC16.png
lorelei-lee-long:Pictures adric$ ls
10000000000000730000007C16DB7F44.gif 10000000000006900000041A1A90FC16.png
1000000000000280000001E046E2A04A.jpg 1000020100000078000000603823342A.png
lorelei-lee-long:Pictures adric$ du -sh ../sophia\ carpet.bmp
5.1M ../sophia carpet.bmp
lorelei-lee-long:Pictures adric$ md5sum ../sophia\ carpet.bmp
07875b435e162e9c7d3a7189ddf94dd5 ../sophia carpet.bmp
lorelei-lee-long:Pictures adric$ md5sum ~/Pictures/42.jpg
d0d0b30f7e2f359ad9bc959b0ea4b37f /Users/adric/Pictures/42.jpg
lorelei-lee-long:Pictures adric$ md5sum *.jpg
d0d0b30f7e2f359ad9bc959b0ea4b37f 1000000000000280000001E046E2A04A.jpg

lorelei-lee-long:bbst adric$ md5sum output/Pictures/*.tif
afcece0325b9a50f176605037828cfb6 output/Pictures/1000000000000277000001D994A35AFD.tif
lorelei-lee-long:bbst adric$ md5sum ~/Pictures/nwn\ wallpaper.tiff
afcece0325b9a50f176605037828cfb6 /Users/adric/Pictures/nwn wallpaper.tiff