Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Imported image changes size on export | ||
---|---|---|---|
Product: | Draw | Reporter: | mikeymike <mike-openoffice> |
Component: | save-export | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | efa, issues |
Version: | OOo 2.4.0 | ||
Target Milestone: | AOO Later | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- | ||
Attachments: |
Description
mikeymike
2008-04-29 09:40:29 UTC
Do you extend the inserted image to original size (context menu ) after inserting it? I haven't been doing that, but it makes no difference if I do that on an A0 page as the image size has not been altered during import. Exact steps: Start Draw (2.4 or 3.0b releases / win32 - PS I've only just installed 3.0b, it wasn't installed at the time of posting this issue) Page setup > Alter to A0 landscape Import image from file (I'll attach a sample image that I've been using for the test - the image's dimensions are 1760x1168) - whether you want to right-click on the image and select 'original size' at this point is up to you, it won't make any visible difference to the size of the image - Select image File > Export. Tick 'selection', specify JPEG (I haven't tried any other file types), give it a name and save it. Quality setting on default is fine. Open exported image in a graphics program, check pixel size, it still should be 1760x1168 (the size of the original). All good. Comparing file sizes shows a difference of about 6KB, fine by me, probably the JPEG compression ratios are different. Now, go back to Draw, add a box inside that image, select all, export JPEG selection as before to another file, and open that in your graphics program of choice - the image size has increased. I've just spotted something new btw - I started with a new Draw file, A0 landscape page again, and imported the file that I exported the first time round, the file that is identical in pixel dimensions to the original JPEG. The image size on the page looks smaller than the original, and if I put the original import alongside it, there definitely is about a 33% size difference. But just to make things really confusing now, if I re-export the 'seemingly smaller' image, it comes out the original size in pixels. I'll post a few attachments to better describe the behaviour I am seeing here. Created attachment 53511 [details]
Original sample file I'm using for test
Created attachment 53512 [details]
Draw file with original jpeg imported
Created attachment 53513 [details]
First exported jpeg, no alterations to image, no problems here
Created attachment 53514 [details]
Second export with box on top of image - significant increase in file size and pixel dimensions
Ignore the draw file, judging by the file size it only has the image linked, it may as well be deleted. During the process of creating those attachments, I tried reversing the routines I was using to create the files, and removing the box from the image would result in a properly exported image. Also I found that using options in the image's "position and size" to protect the image position and size made no difference to this issue. Very good and explicit description, thanks. Reproducible. Reassigned. *** Issue 128478 has been marked as a duplicate of this issue. *** any news on this? With current AOO 4.1.13 I always got malformed (stretched and a part near border is cut away) when is set a page border, also with a simple draw rectangle. When page border is set to 0, no stretching happen. |