Bug 43061 - INSERT DRAW generated SVG Does Not have WRITER Page Dimensions
Summary: INSERT DRAW generated SVG Does Not have WRITER Page Dimensions
Status: CLOSED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Master old -3.6
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 05:12 UTC by rk601
Modified: 2014-07-29 09:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Diamond Shape in DRAW used in WRITER (1.75 KB, image/svg+xml)
2011-11-18 05:12 UTC, rk601
Details
SVG Picture Created in DRAW and used in WRITER (88.03 KB, image/png)
2011-11-18 05:13 UTC, rk601
Details
Example of Default DRAW and WRITER Dimensions (73.67 KB, image/png)
2011-11-20 07:41 UTC, rk601
Details
DRAW Border SVG Example (48.57 KB, image/svg+xml)
2011-11-30 10:01 UTC, rk601
Details
An Example of an Image that fits DRAW's Default Page Dimensions (169.19 KB, image/png)
2011-11-30 10:05 UTC, rk601
Details
An Example of Unmatching Default DRAW Dimensions and Default WRITER Dimensions (135.56 KB, image/png)
2011-11-30 10:10 UTC, rk601
Details
Comparison of a Re-sized Image from DRAW to fit WRITER's Default Dimensions (198.58 KB, image/png)
2011-11-30 10:20 UTC, rk601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rk601 2011-11-18 05:12:15 UTC
Created attachment 53649 [details]
Diamond Shape in DRAW used in WRITER

Perhaps this is not an error, but it should not be the default behavior.

When an SVG picture is generated within DRAW and then used in WRITER then the "default" SVG picture size does not correspond to the default WRITER Page Size. 

As an example, we tested the desired functionality in the Master:

LibO-dev 3.5.0 
Build ID: 8f87c3d-5d03837-adcf6d5-c4bb9bd
On OSX 10.6.8

Located at:

http://dev-builds.libreoffice.org/daily/MacOSX_10.6.7_Intel_no-moz/master/2011-11-16_01.40.47/

with

master~2011-11-16_01.40.47_LibO-Dev_OOO350m1_MacOS_x86_install_en-US.dmg

Steps to reproduce:

1. Start LibreOffice and choose File -> New -> Text Document.
2. Select Insert -> Picture -> From File... (we inserted Diamond Shape.svg)
3. Choose the "Diamond Shape.svg" file previously generated in DRAW (See Bug #43060).

Expected results: The SVG Picture from DRAW should fit the default page size of 8.5 by 11 inches in WRITER; see the next attachment.
Actual results: The SVG picture does not fit the default page size of 8.5 by 11 inches in WRITER.

See attachment of SVG used.

Thank you.
Comment 1 rk601 2011-11-18 05:13:16 UTC
Created attachment 53650 [details]
SVG Picture Created in DRAW and used in WRITER
Comment 2 Rainer Bielefeld Retired 2011-11-20 00:51:50 UTC
Your problem is that the inserted picture shows a small "diamond" within a big white area? That would have nothing to do with WRITER, because "Diamond  Shape.svg" IS a big wihte area with a small diamond in it. 

So everything is ok here.

Assumption:
I believe you expected that "Diamond Shape.svg" created from DRAW should only have the size of the diamond shape without white area around because you exported "Selection"? That is a problem I also observed, but it's a DRAW problem.

@reporter:
please check whether my assumption is correct.
Comment 3 rk601 2011-11-20 07:41:32 UTC
Created attachment 53709 [details]
Example of Default DRAW and WRITER Dimensions

@Rainer Bielefeld

Thank you for your desire for clarification. An example PNG image is attached called, "DRAW SVG Picture in WRITER Dimensions.png".

Please note that the diamond shape, in this case, is not relevant to the potential problem; any shape or image(s) will be affected. If you look at the attached image, you will see that the png shows small greenish squares (handle bars) that depict the dimension of the "view box" which contains the diamond shape or other shapes as desired. An ORANGE colored ellipse depicts the lower boundary of the default dimensions of the "view box" area as supplied by DRAW. The RED colored rectangle shows an approximation of the default page dimensions within WRITER. 

The potential problems occur when the default DRAW "view box" size is inserted into the default page size of WRITER. The inserted "image" does not fit so the "view box" must be re-sized within WRITER, and as discussed in various BUGs (like Bug 43063, Bug 43065, and others) the inserted image would be distorted to fill the "page." This is particularly problematic when using SVG because in LibreOffice the SVG will, among other things, be longer than desired when made to "fit." If a user tries to maintain the inserted image dimensions then the "view box" will expand beyond the "page" dimension, so other problems arise--like cropping. 

In essence, this BUG asks if the default DRAW dimensions are arbitrary? If the dimensions used are arbitrary then please make DRAW's default dimensions match WRITER's default page dimensions. Therefore images can easily fit into LibreOffice and be used in a variety of ways including but not limited to Landscape and Portrait pages without distorting the desired images. In addition, resizing the images can maintain the default page dimensions in scale.
Comment 4 Rainer Bielefeld Retired 2011-11-30 08:11:23 UTC
It can't be expected that all pictures in the world all have reporter's page height to width ratio - reporter's desire that an arbitrary picture created in an arbitrary sized DRAW page should alway fill complete page of an arbitrary selected page size is not realistic. 

Here is no bug.
Comment 5 rk601 2011-11-30 09:58:34 UTC
There appears to be some confusion with this reported potential BUG. Please note that it is not expected that all pictures in the world all have "reporter's" page
height to width ratio. The provided example was perhaps unclear?

As stated in Comment #3: "...The potential problems occur when the default DRAW "view box" size is inserted into the default page size of WRITER. The inserted "image" does not fit so the "view box" must be re-sized within WRITER..."

The following attachment will, hopefully, clarify the desired behavior. Please note that the potential BUG has to do with the Default DRAW and Default WRITER Dimensions, and although all pictures may be distorted the images that are most at risk are the images that rely on the Dimensions of the "View Box" in DRAW to match the Dimensions of imported DRAW image within WRITER.
Comment 6 rk601 2011-11-30 10:01:33 UTC
Created attachment 53975 [details]
DRAW Border SVG Example

Step 1:

Use LibO DRAW to either create an image that has the default dimensions of the DRAW "view box" or Insert -> Picture -> From File... that has the desired border dimensions.
Comment 7 rk601 2011-11-30 10:05:42 UTC
Created attachment 53978 [details]
An Example of an Image that fits DRAW's Default Page Dimensions

Step 2:

Use LibO DRAW to save the image with the default dimensions of the DRAW "view box" using File -> Export... Select File type of SVG.
Comment 8 rk601 2011-11-30 10:10:34 UTC
Created attachment 53979 [details]
An Example of Unmatching Default DRAW Dimensions and Default WRITER Dimensions

Step 3:

Use LibO WRITER to import the image with the default dimensions of DRAW's "view box" using Insert -> Picture -> From File... Select the previously saved DRAW image.

Please notice within the attachment that DRAW's default dimensions do NOT match WRITER's default dimensions.
Comment 9 rk601 2011-11-30 10:20:55 UTC
Created attachment 53980 [details]
Comparison of a Re-sized Image from DRAW to fit WRITER's Default Dimensions

Step 4:

In WRITER create another page and use WRITER to import the same image with the default dimensions of DRAW's "view box" using Insert -> Picture -> From File... Select the previously saved DRAW image. Now there are two "border images" within WRITER on two different pages.

Next, re-size the image on the RIGHT to match WRITER's default dimensions.

Please notice within the attachment that DRAW's default dimensions do NOT match WRITER's default dimensions. You will see that DRAW's default dimensions (image on the LEFT) does not match WRITER's default dimensions (image on the RIGHT). In order to use the desired image, in this case a border, the image on the RIGHT had to be DISTORTED to fit WRITER's default dimensions. With technical drawings and other images this type of distortion can be problematic.

In essence, this BUG asks if the default DRAW dimensions are arbitrary? If the
dimensions used are arbitrary then please make DRAW's default dimensions match
WRITER's default page dimensions. Therefore images can easily fit into
LibreOffice and be used in a variety of ways including but not limited to
Landscape and Portrait pages without distorting the desired images. In
addition, resizing the images can maintain the default page dimensions in
scale.
Comment 10 Rainer Bielefeld Retired 2011-11-30 11:05:29 UTC
That's all known and all irrelevant, I'm tired with this useless discussion and will invest my time for bugs, no longer for these NOTABUGs
Comment 11 Roman Eisele 2012-09-25 19:18:02 UTC
If there is any bug here (I share Rainer Bielefeld’s doubts), it is not specific to LibreOffice for Mac OS X, therefore changed Platform to “All/All”.
Comment 12 Jorendc 2014-07-29 09:50:27 UTC
Agreed to Rainer and Roman. -> CLOSED WONTFIX. Don't waste time to reopen this bug, this is never going to be fixed.