Issue 65665 - Graphic has wrong size when imported in OO
Summary: Graphic has wrong size when imported in OO
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 2.0.1
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-05-21 16:03 UTC by sos
Modified: 2013-08-07 14:44 UTC (History)
1 user (show)

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


Attachments
Jpg file saved with 300 DPI (295.14 KB, image/jpeg)
2006-05-23 18:44 UTC, sos
no flags Details
Jpg file saved with 300 DPI (295.14 KB, image/jpeg)
2006-05-23 18:45 UTC, sos
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sos 2006-05-21 16:03:16 UTC
Placing  an embedded -grahpic  into a WriterDoc (with the GUI or withe 
the API) gives different results depending if  you  placed it as  a 
linked-graphic or as a embedded-graphic.
Embedded gives us  the orinal dimensions (as difined in the original 
imported Imagefile-header)  gives us the correct "orginal-size" , the 
image had a "scale of "100%" and a correct "image-size "
Linked gives us the a  wrong "orginal size" (based on 96 DPI)  a 
"scaling"  with a percentage to optain a correct  "image size" !!
Comment 1 michael.ruess 2006-05-23 15:09:07 UTC
I cannot reproduce with my sample graphics, please attach the offending graphic
to this issue, so that we can reproduce and fix the problem here. Feel free to
re-open the issue when you've done.
Thanks for supporting us!
Comment 2 sos 2006-05-23 18:44:52 UTC
Created attachment 36686 [details]
Jpg file saved with 300 DPI
Comment 3 sos 2006-05-23 18:45:08 UTC
Created attachment 36687 [details]
Jpg file saved with 300 DPI
Comment 4 sos 2006-05-23 18:50:39 UTC
Sory for the 2 files was not the intention

When you tested with graphics saved with a 96 DPI resolution, ofcourse you can 
not "see" the defect (oo is working with 96 DPI) only graphics with a different 
DPI shows the defect
So my testfile is saved with a 300 DPI resolution.
Hope it helps
Comment 5 michael.ruess 2006-05-24 08:54:19 UTC
Now I see.

MRU->SJ: opening the attached graphic with OO seems to import a wrong "original"
size. Comparing this to MS Paint or Moz Firefox, the graphic is much smaller in OO.
Comment 6 sos 2006-05-24 09:25:35 UTC
sorry but,
There is more than that, opening as a link or as embedded has different results 
of how the image is "scaled and sised"
Comment 7 sos 2006-05-24 11:32:38 UTC
here i am again :-)

You must alsoo notice thats the defect behaviour is only present in WRITER not 
in the other Components where we can insert a Picture.
What happens is:
When we insert a picture "embedded" in Writer then OO acts as we can expect: 
the insertWizard uses the number of Pixesl in the Imagefile and the Resolution 
(DPI) who is also present in the Imagefile.
Recently I looked in the API (to find a solution to have more control of how 
pictures are insterted) and found that the graphic.Provider gives us the pixels 
and the dimensions (must be a result of pixesl devided bij the DPI) 

[int(oShape.Graphic.sizepixel.height)] gives us the "pixelHeight in pixels"
[int(oShape.Graphic.size100thMM.height] gives us the "dimension in thMM"
 
Now:
If we embedded a picture, the insertwizard gives us a correct "Original Size" 
but no information on the number of pixels and the DPI pressent in the 
Imagefile.
If we Linked a picture, the inszerwizard gives us a wrong "Orginal Size" who is 
the result of deviding the number of pixesl by the stadard OO-DPI (96) and then 
correct this behaviuour by scaling the picture to endup with the "wanted-
correct" Dimensions.
At is thats no problem as long we stayed in Writer, the problems ocour when 
making PDF's, HTML.... 

Please try to convince your desion-makers that gaving information (who is 
pressent in every ImageFile) about thet number of pixels and the saved-DPI is 
of heigh importance to produce doc's with a proffesional quality, for the WEB, 
LaserPrinters an Press. These diferent outputs have totaly different needs .
For the web we needs 72-96 pixels/inch
For a Laserprinter we need 150-170 pixels/inch
For a press-quality (CMYK) we need 250-300 pixesls/inch 
Having control over this things bring OO a big stap higher as a tool to produce 
Docs who can be used in different ouput envoriments!!!!! 

Thanks for your patience
Fernand(sos)
Comment 8 sven.jacobi 2006-06-15 16:53:48 UTC
sj: As sos said, it is a writer problem only, I change the owner to the proper
person of the Writer team..
Comment 9 sos 2007-03-07 17:26:55 UTC
8 months without news ??
Its still an anoying problem !!!!
Comment 10 sos 2007-03-07 17:27:54 UTC
8 months without news ??
Its still an anoying problem !!!!
Comment 11 sos 2007-03-07 17:28:30 UTC
8 months without news ??
Its still an anoying problem !!!!
Comment 12 lohmaier 2007-03-07 17:58:08 UTC
I can see no difference depending the image is inserted linked or embedded.
Both modes have the same size.

I can confirm the difference of the scaling-value in the Pictures-Dialog, but
honestly I don't think that is high priority...
Comment 13 sos 2007-03-07 18:49:58 UTC
Trye to understand that, for a more Professional use off OO importing, croping
Images is still a must an one of the (few) weaknesses of the Writer part 
Comment 14 sos 2010-05-05 17:03:02 UTC
SOLVED
Comment 15 Oliver-Rainer Wittmann 2010-05-06 07:15:47 UTC
od->mru:
Please take over and confirm that this issue is solved.
Comment 16 michael.ruess 2010-05-06 08:29:41 UTC
yes, can confirm. Compared with Gimp, the graphic has now a correct size in OOo
Writer.
Comment 17 michael.ruess 2010-05-06 08:29:58 UTC
Closed.