Issue 93716 - Size100thMM not filled-in if image contains EXIF data
Summary: Size100thMM not filled-in if image contains EXIF data
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.4.1
Hardware: All Windows XP
: P3 Trivial with 4 votes (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-10 13:31 UTC by bmarcelly
Modified: 2013-01-29 21:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Doc with macro to insert an image (10.19 KB, application/vnd.oasis.opendocument.text)
2008-09-10 13:32 UTC, bmarcelly
no flags Details
An image without Exif data (63.27 KB, image/jpeg)
2008-09-10 13:34 UTC, bmarcelly
no flags Details
The same image with some Exif data (110.27 KB, image/jpeg)
2008-09-10 13:35 UTC, bmarcelly
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2008-09-10 13:31:19 UTC
com.sun.star.graphic.GraphicDescriptor Property Size100thMM contains Width = 0 and 
Height = 0 if the loaded image contains any EXIF data. It should contain the initial 
size of the image.

Nowadays most images contain EXIF data because they were shot with digital 
photography camera. So this bug renders the property useless.

Next attachments contain a Writer document with a short macro, and two images.
Comment 1 bmarcelly 2008-09-10 13:32:11 UTC
Created attachment 56383 [details]
Doc with macro to insert an image
Comment 2 bmarcelly 2008-09-10 13:34:41 UTC
Created attachment 56384 [details]
An image without Exif data
Comment 3 bmarcelly 2008-09-10 13:35:20 UTC
Created attachment 56385 [details]
The same image with some Exif data
Comment 4 rboulle 2008-09-10 18:17:57 UTC
It is, for example, annoying if one wants to insert and resize a picture
preserving aspect ratio. One needs to know the original size in metric units
(100th of mm here) in order to calculate properly the appropriate size.

Example : a macro that generate a "trombinoscope" automatically needs to know
Size100thMM to insert properly pictures according to page settings (width and
height) that are given in mm...

Thanks ! :-) 
Comment 5 rboulle 2008-09-10 21:18:30 UTC
*** Issue 93716 has been confirmed by votes. ***
Comment 6 thorsten.martens 2008-09-11 09:34:21 UTC
TM->WG: please have a look, thanks !
Comment 7 wolframgarten 2008-09-11 10:08:33 UTC
Reproducible with example. Reassigned.
Comment 8 cno 2009-02-18 11:45:07 UTC
Something has changed ... Running this in 3.0.1, Image.Graphic.Size100thMM
returns 0 for both graphics.

@ rboulle;
Why can't you use Image.Graphic.SizePixel for the aspect ratio?
Comment 9 bmarcelly 2009-02-18 17:52:16 UTC
Yes, it has changed since 3.0.0.
But with DEV310m1 it gives again the same result as in 2.4.2.

Still no designers to correct this ?