Page 1 of 1
[Solved] Inserted pics are trimmed/cropped around the edges
Posted: Sun Nov 06, 2016 6:31 am
by damien
Every time I insert an image into my document in Writer, the image isn't showing in full size-- the edges are trimmed.
I'll attach a screenshot showing my settings.

- http://doontoon.com/sharefiles/for-forum.png
Does anyone know how to prevent this unwanted trim/crop?
Thanks in advance!
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Sun Nov 06, 2016 9:33 am
by Zizi64
Please upload your real ODF example file here. Or link it here from a free file sharing service when the size is larger than 128 KiB.
How and where from you inserted the picture?
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Sun Nov 06, 2016 4:10 pm
by Bill
How do you know that the picture has been cropped? The settings show that the image has been scaled down in size, but not cropped.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Sun Nov 06, 2016 4:36 pm
by John_Ha
Welcome to the forum.
Is your image really 37.83" x 21.65" as reported?
Try inserting this image by Insert > Picture > From file ... When I do so, it is not cropped.
See
Some useful hints on using images for a discussion on how best to handle images in Writer.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Mon Nov 07, 2016 11:55 am
by damien
Thank you... I can see that the edges around the image are missing. At least, that's how it *appears* in Normal view.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Mon Nov 07, 2016 1:28 pm
by John_Ha
Please upload an example file with my image which shows the problem - use the Upload attachment tab below where you type.
A thought - has the image been copied from a web page? If so, first paste the image into an image editor and save it as a file. Now insert the saved file.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Mon Nov 07, 2016 1:33 pm
by Bill
What is "Normal view"? That was a view found in old versions of MS Word. Writer has "Print layout" and "Web layout".
Please post a screen shot of Normal view showing the cropped picture. Picture files aren't modified by Writer. Cropping just hides edges of the picture. The picture shown on the Picture dialog shows the full picture that was imported. Are you saying that this picture is not the same as the picture shown in some other view?
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 7:00 am
by damien
Thank you friends,
Okay, I'll attach link to a PNG file, and and ODT with the PNG embedded. Maybe the problem relates to columns?
The image to embed
The ODT file:
http://doontoon.com/sharefiles/show-forum.odt
Thanks in advance!
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 8:33 am
by Zizi64
Your attached .odt document is empty.
The pixel size of your attached picture is 4541x2512 pixels. It is 11,406,992 pixels. This means the AOO/LO must handle three times more RGB bytes in the unpacked state: that is 34,220,976 bytes.
The resolution of your picture is 300 dpi. (Displayed by the InfanView software) It means: the physical size of your picture is ~15.1" x 8.4" = ~384mm x 213mm.
Why you need such huge picture in a Writer document?
Optimize your pictures before you embed them into a Writer document. Use third party image manipulation software, like the IrfanView.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 9:59 am
by damien
Thank you... agreed, I can optimize the image. The original problem still exists, though, so my question still exists.
I'll check the ODT... the image was linked into the doc instead of embedded. Here, let me adjust both the image and the ODT (this time with image included instead of linked).
I formatted the embedded pic as Width (Relative 100%), Height (Relative, auto-calc'd to 21%), with "Keep Ratio" turned on. I find the top/bottom are clipped. I just want the original image, not clipped anywhere, on any side, with original ratio.
Attaching the ODT and the JPG that I embedded.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 10:48 am
by floris v
Right. Copied the picture to PAint, resized to 25 %, saved, inserted the picture in the odt and the result is cropped.
| Edit: Pasting the whole document in a blank document solves it, as mentioned in the posts by John_Ha and Zizi64 below. |
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 11:00 am
by RoryOF
I'm not following the detail of this thread; I remark for information that there is no point in inserting pictures to be displayed at higher resolutions than 210 dpi on the finished printout. At normal viewing distances, in normal circumstances, the eye cannot resolve better than this. By setting insertions to this resolution and cropping them in an external graphics editor before insertion one can greatly decrease the OO file size and improve stability and response.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 11:24 am
by John_Ha
Your .odt file has somehow become corrupted or "tangled".
You can easily fix it by pasting the entire document into a fresh, new document - this fixes the problem with the image. Search the forum with tangled for other examples.
1 Edit > Select All
2 Edit > Copy
3 File > New > Text document
4 Edit > Paste
Did the document originate as a .doc, .docx or .rtf file?
Has the document been edited many times?
See
Some useful hints on using images for a discussion on how best to handle images in Writer.
If this solves the problem, please click the Edit button on your
original post and add [Solved] in front of your subject.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 11:24 am
by Zizi64
Some settings seems wrong in your .odt file. I have tried insert my own pictures, and they are cropped too.
But when I tried insert your attaches pictutre in a new, empty Writer file, that works fine for me.
The picture (and all of other newly inserted pictures) will be cropped in an another applied Page Style in your file, too.
The properties of the default Picture Style seems same as in my new file...
I do not know what settings are wrong.
Had you converted your file into foreign (MS or other) fileformats (and then back) in the past anytime?
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 12:10 pm
by RoryOF
The picture stored in the sample file is complete, so the cropping is originating from some settings in the document.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 12:25 pm
by musikai
Somehow your odt is corrupted. It is a riddle. If I copy and paste your content into a new OpenOffice file, it is still flawed.
But if I paste it into a new LibreOffice file everything is ok. Still when opening this in Openoffice. (see attachment).
But if I now paste from this again to a new Openoffice file it is again flawed.(edit: ? tested again: Mh, now it is ok)
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 12:47 pm
by John_Ha
On closer inspection I agree - the image is cropped at top and bottom though the edges seem OK. Changing the columns to 1, the page to A3 landscape and Format > Paragraph does not fix it.
This is the XML from content.xml - it looks OK to my eye. Can someone with LO unzip the .odt and extract this from content.xml. These are the lines of interest.
Code: Select all
<text:p text:style-name="P2">
<draw:frame draw:style-name="fr1" draw:name="graphics1" text:anchor-type="as-char" svg:width="3.7362in" style:rel-width="100%" svg:height="1.9925in" style:rel-height="21%" draw:z-index="0">
<draw:image xlink:href="Pictures/1000020100000546000002E838FAA4A9.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
<text:p text:style-name="P2">Summo mundi senserit vel ea. Torquatos adolescens in mei, id usu lorem necessitatibus, agam posidonium intellegebat pro et. Per an liber timeam, qui cu iudico molestie senserit. Ut pro eius vivendum platonem, no eum volumus appetere mnesarchum. Reque ocurreret accommodare ne per, an per labitur pertinax, liber malorum accusata at vim. Insolens suavitate sea ut.</text:p>
This is the complete content.xml.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:textooo="http://openoffice.org/2013/office" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
<office:scripts/>
<office:font-face-decls>
<style:font-face style:name="Economica" svg:font-family="Economica" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Open Sans" svg:font-family="'Open Sans'" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Trebuchet MS" svg:font-family="'Trebuchet MS'" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Caladea" svg:font-family="Caladea" style:font-family-generic="swiss" style:font-pitch="variable"/>
<style:font-face style:name="Caladea1" svg:font-family="Caladea" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="Economica1" svg:font-family="Economica" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="Open Sans1" svg:font-family="'Open Sans'" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="Trebuchet MS1" svg:font-family="'Trebuchet MS'" style:font-family-generic="system" style:font-pitch="variable"/>
</office:font-face-decls>
<office:automatic-styles>
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties loext:contextual-spacing="false" fo:margin-left="-0.0102in" fo:margin-right="0in" fo:margin-top="0.139in" fo:margin-bottom="0in" fo:text-indent="0in" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties loext:contextual-spacing="true" fo:margin-left="-0.0102in" fo:margin-right="0in" fo:margin-top="0.139in" fo:margin-bottom="0in" fo:text-indent="0in" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Heading_20_1">
<style:paragraph-properties loext:contextual-spacing="false" fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0.139in" fo:margin-bottom="0in" fo:text-indent="0in" style:auto-text-indent="false" fo:break-before="page"/>
</style:style>
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Standard" style:master-page-name="First_20_Page">
<style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0in" fo:line-height="100%" style:page-number="1"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties fo:color="#000000" fo:font-size="24pt" style:font-size-asian="24pt" style:font-size-complex="24pt"/>
</style:style>
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
<style:graphic-properties style:vertical-pos="top" style:vertical-rel="baseline" style:horizontal-pos="center" style:horizontal-rel="paragraph" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
</style:style>
</office:automatic-styles>
<office:body>
<office:text text:use-soft-page-breaks="true">
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
</text:sequence-decls>
<text:p text:style-name="P4">
<text:span text:style-name="T1">TITLE PAGE</text:span>
<text:line-break/>November 2016</text:p>
<text:p text:style-name="P3">
<text:bookmark text:name="_arolcxe0i15c"/>Introduction</text:p>
<text:p text:style-name="P2">Lorem ipsum dolor sit amet, omittam suavitate pri ad. Vel no paulo accusam. Eos dicant impetus ne. Paulo noluisse assentior sed cu, ne quodsi malorum philosophia cum. Usu suas verear iriure te. Eum ferri fuisset definitionem ne, exerci percipitur id est, eos vero wisi et.</text:p>
<text:p text:style-name="P2">
<draw:frame draw:style-name="fr1" draw:name="graphics1" text:anchor-type="as-char" svg:width="3.7362in" style:rel-width="100%" svg:height="1.9925in" style:rel-height="21%" draw:z-index="0">
<draw:image xlink:href="Pictures/1000020100000546000002E838FAA4A9.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
<text:p text:style-name="P2">Summo mundi senserit vel ea. Torquatos adolescens in mei, id usu lorem necessitatibus, agam posidonium intellegebat pro et. Per an liber timeam, qui cu iudico molestie senserit. Ut pro eius vivendum platonem, no eum volumus appetere mnesarchum. Reque ocurreret accommodare ne per, an per labitur pertinax, liber malorum accusata at vim. Insolens suavitate sea ut.</text:p>
<text:p text:style-name="P2"/>
<text:p text:style-name="P2">An est putent numquam, esse probo ea pri. Pri tation persecuti expetendis te, cu choro suavitate vulputate pri. Justo percipitur mea te. Pri bonorum copiosae recusabo te, id nec indoctum eloquentiam.</text:p>
<text:p text:style-name="P2"/>
<text:p text:style-name="P2">No saepe maiestatis his, novum iudico suavitate no vix. Et novum corrumpit incorrupte sed. Mel rebum movet ea, sea ad facete vivendum voluptatibus, doming audiam intellegat te mei. Est iriure erroribus ne, eos dolorum corpora fabellas cu, vim eu meliore tacimates convenire.</text:p>
<text:p text:style-name="P2"/>
<text:p text:style-name="P2">Vim no erant integre consulatu, et pro alii eleifend. Usu porro delicata argumentum eu. Eu per nibh vidisse recusabo, his ei regione gloriatur. At error vocent constituam has. Audiam efficiantur id his.</text:p>
<text:p text:style-name="P1"/>
<text:p text:style-name="P1"/>
<text:p text:style-name="P1">Lorem ipsum dolor sit amet, omittam suavitate pri ad. Vel no paulo accusam. Eos dicant impetus ne. Paulo noluisse assentior sed cu, ne quodsi malorum philosophia cum. Usu suas verear iriure te. Eum ferri fuisset definitionem ne, exerci percipitur id est, eos vero wisi et.</text:p>
<text:p text:style-name="P1"/>
<text:p text:style-name="P1">Summo mundi senserit vel ea. Torquatos adolescens in mei, id usu lorem necessitatibus, agam posidonium intellegebat <text:soft-page-break/>pro et. Per an liber timeam, qui cu iudico molestie senserit. Ut pro eius vivendum platonem, no eum volumus appetere mnesarchum. Reque ocurreret accommodare ne per, an per labitur pertinax, liber malorum accusata at vim. Insolens suavitate sea ut.</text:p>
<text:p text:style-name="P1"/>
<text:p text:style-name="P1">An est putent numquam, esse probo ea pri. Pri tation persecuti expetendis te, cu choro suavitate vulputate pri. Justo percipitur mea te. Pri bonorum copiosae recusabo te, id nec indoctum eloquentiam.</text:p>
</office:text>
</office:body>
</office:document-content>
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 12:54 pm
by John_Ha
If show-forum2.odt is from LO, then the appropriate lines are
Code: Select all
<text:p text:style-name="P2">
<draw:frame draw:style-name="fr1" draw:name="graphics1" text:anchor-type="as-char" svg:width="2.858cm" style:rel-width="100%" svg:height="1.575cm" style:rel-height="scale" draw:z-index="0">
<draw:image xlink:href="Pictures/1000000000000546000002E800C54D6E.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
and the entire content.xml is
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2">
<office:scripts/>
<office:font-face-decls>
<style:font-face style:name="Tahoma1" svg:font-family="Tahoma"/>
<style:font-face style:name="Lucida Sans Unicode" svg:font-family="'Lucida Sans Unicode'" style:font-pitch="variable"/>
<style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-pitch="variable"/>
<style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/>
</office:font-face-decls>
<office:automatic-styles>
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties fo:margin-left="-0.026cm" fo:margin-right="0cm" fo:margin-top="0.353cm" fo:margin-bottom="0cm" loext:contextual-spacing="false" fo:text-indent="0cm" style:auto-text-indent="false"/>
<style:text-properties officeooo:paragraph-rsid="00089047"/>
</style:style>
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties fo:margin-left="-0.026cm" fo:margin-right="0cm" fo:margin-top="0.353cm" fo:margin-bottom="0cm" loext:contextual-spacing="true" fo:text-indent="0cm" style:auto-text-indent="false"/>
<style:text-properties officeooo:paragraph-rsid="00089047"/>
</style:style>
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard" style:master-page-name="First_20_Page">
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0cm" loext:contextual-spacing="false" fo:line-height="100%" style:page-number="1"/>
<style:text-properties officeooo:paragraph-rsid="00089047"/>
</style:style>
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Heading_20_1">
<style:paragraph-properties fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-top="0.353cm" fo:margin-bottom="0cm" loext:contextual-spacing="false" fo:text-indent="0cm" style:auto-text-indent="false" fo:break-before="page"/>
<style:text-properties officeooo:paragraph-rsid="00089047"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties fo:color="#000000" fo:font-size="24pt" style:font-size-asian="24pt" style:font-size-complex="24pt"/>
</style:style>
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
<style:graphic-properties fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-top="0cm" fo:margin-bottom="0cm" style:print-content="true" style:protect="none" style:wrap="dynamic" style:number-wrapped-paragraphs="no-limit" style:wrap-contour="false" style:vertical-pos="top" style:vertical-rel="baseline" style:horizontal-pos="center" style:horizontal-rel="paragraph" style:mirror="none" fo:clip="rect(0cm, 0cm, 0cm, 0cm)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard" loext:rel-width-rel="paragraph"/>
</style:style>
</office:automatic-styles>
<office:body>
<office:text text:use-soft-page-breaks="true">
<office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
</text:sequence-decls>
<text:p text:style-name="P3">
<text:span text:style-name="T1">TITLE PAGE</text:span>
<text:line-break/>November 2016</text:p>
<text:h text:style-name="P4" text:outline-level="1">
<text:bookmark text:name="_arolcxe0i15c"/>Introduction</text:h>
<text:p text:style-name="P2">Lorem ipsum dolor sit amet, omittam suavitate pri ad. Vel no paulo accusam. Eos dicant impetus ne. Paulo noluisse assentior sed cu, ne quodsi malorum philosophia cum. Usu suas verear iriure te. Eum ferri fuisset definitionem ne, exerci percipitur id est, eos vero wisi et.</text:p>
<text:p text:style-name="P2">
<draw:frame draw:style-name="fr1" draw:name="graphics1" text:anchor-type="as-char" svg:width="2.858cm" style:rel-width="100%" svg:height="1.575cm" style:rel-height="scale" draw:z-index="0">
<draw:image xlink:href="Pictures/1000000000000546000002E800C54D6E.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
<text:p text:style-name="P2">Summo mundi senserit vel ea. Torquatos adolescens in mei, id usu lorem necessitatibus, agam posidonium intellegebat pro et. Per an liber timeam, qui cu iudico molestie senserit. Ut pro eius vivendum platonem, no eum volumus appetere mnesarchum. Reque ocurreret accommodare ne per, an per labitur pertinax, liber malorum accusata at vim. Insolens suavitate sea ut.</text:p>
<text:p text:style-name="P2"/>
<text:p text:style-name="P2">An est putent numquam, esse probo ea pri. Pri tation persecuti expetendis te, cu choro suavitate vulputate pri. Justo percipitur mea te. Pri bonorum copiosae recusabo te, id nec indoctum eloquentiam.</text:p>
<text:p text:style-name="P2"/>
<text:p text:style-name="P2">No saepe maiestatis his, novum iudico suavitate no vix. Et novum corrumpit incorrupte sed. Mel rebum movet ea, sea ad facete vivendum voluptatibus, doming audiam intellegat te mei. Est iriure erroribus ne, eos dolorum corpora fabellas cu, vim eu meliore tacimates convenire.</text:p>
<text:p text:style-name="P2"/>
<text:p text:style-name="P2">Vim no erant integre consulatu, et pro alii eleifend. Usu porro delicata argumentum eu. Eu per nibh vidisse recusabo, his ei regione gloriatur. At error vocent constituam has. Audiam efficiantur id his.</text:p>
<text:p text:style-name="P1"/>
<text:p text:style-name="P1"/>
<text:p text:style-name="P1">Lorem ipsum dolor sit amet, omittam suavitate pri ad. Vel no paulo accusam. Eos dicant impetus ne. Paulo noluisse assentior sed cu, ne quodsi malorum philosophia cum. Usu suas verear iriure te. Eum ferri fuisset definitionem ne, exerci percipitur id est, eos vero wisi et.</text:p>
<text:p text:style-name="P1"/>
<text:p text:style-name="P1">Summo mundi senserit vel ea. Torquatos adolescens in mei, id usu lorem necessitatibus, agam posidonium intellegebat pro et. Per an liber timeam, qui cu iudico molestie senserit. Ut pro eius vivendum platonem, no eum volumus appetere mnesarchum. Reque ocurreret accommodare ne per, an per labitur pertinax, liber malorum accusata at vim. Insolens suavitate sea ut.</text:p>
<text:p text:style-name="P1"/>
<text:p text:style-name="P1">An est putent numquam, esse probo ea pri. Pri tation persecuti expetendis te, cu choro suavitate vulputate pri. Justo percipitur mea te. Pri bonorum copiosae recusabo te, id nec indoctum eloquentiam.</text:p>
</office:text>
</office:body>
</office:document-content>
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 1:05 pm
by RoryOF
I can copy and paste the "cropped" picture to a new document. It shows as complete, no cropping. No change I make to the original document has affected the vertical cropping. Any Paste to a new page in the original document shows the cropped image only.
@John_Ha: have a look at the settings from the frame style used - I cannot see anything odd, but another opinion might be useful.
I'm going off-line now.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 1:22 pm
by Hagar Delest
The problem comes from the styles.xml file.
Code: Select all
<style:default-style style:family="paragraph">
<style:paragraph-properties loext:contextual-spacing="false" fo:margin-left="-0.0102in" fo:margin-right="0in" fo:margin-top="0.139in" fo:margin-bottom="0in" fo:line-height="150%" fo:text-align="start" style:justify-single-word="false" fo:keep-together="auto" fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" fo:text-indent="0in" style:auto-text-indent="false" fo:keep-with-next="auto" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.5in" style:writing-mode="lr-tb"/>
<style:text-properties fo:font-variant="normal" fo:text-transform="none" fo:color="#000000" style:text-line-through-style="none" style:text-position="0% 100%" style:font-name="Open Sans" fo:font-size="11pt" fo:language="en" fo:country="US" fo:font-style="normal" style:text-underline-style="none" fo:font-weight="normal" style:letter-kerning="true" style:font-name-asian="Open Sans1" style:font-size-asian="11pt" style:language-asian="zh" style:country-asian="CN" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-name-complex="Open Sans1" style:font-size-complex="11pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2"/>
</style:default-style>
In the paragraph style declaration this is the culprit:
Code: Select all
fo:margin-left="-0.0102in" fo:margin-right="0in" fo:margin-top="0.139in"
Remove the string (beginning of the declaration) and it's good.
Or change it to 0:
Code: Select all
fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in"
But don't know from where this setting could come from.
| Edit: Edited with original strings (settings in inches). |
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Fri Nov 11, 2016 4:36 pm
by Hagar Delest
This is strange because that parameter (fo:margin-top="0.139in") should apply on the paragraph spacing (in this case the space after).
In fact, it also applies to the picture spacing (Wrap tab of the picture and Graphics style properties) but like it was inside a frame.
And even if I change the parameter in the AOO interface, there is no change on the picture.
Can you detail the history of this file?
Do you have similar ones? Does it happen for any new document?
Do you use a custom template?
This is rather interesting and it may be worth filing a bug report in case there is something specific.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Sat Nov 12, 2016 1:25 am
by damien
Y'all are amazingly helpful!

Thank you so much!
The document was originally created in OpenOffice... nothing strange. However, I might have updated OpenOffice after the doc was first created. That could explain something; however, I honestly cannot remember whether that's the case.
Anyway, I'm going to start a new doc, set up columns, paste my text (as text-only), and insert the image(s). If this resolves it, then I'll close the thread. Not sure whether there is a bug to report.
Thanks again... I'll post in a little bit.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Sat Nov 12, 2016 1:37 am
by damien
When I create a new document, with columns, I have absolutely no trouble with inserted images.
So, this was about that ODF file specifically. Possibly, it didn't upgrade properly when I updated OpenOffice. (See the XML stuff above.)
Thanks for all the help! I'll close this thread.
Re: Inserted pictures are trimmed/cropped around the edges
Posted: Sat Nov 12, 2016 2:32 am
by John_Ha
Hagar Delest wrote:This is strange because that parameter (fo:margin-top="0.139in") should apply on the paragraph spacing (in this case the space after).
...
This is rather interesting and it may be worth filing a bug report in case there is something specific.
I have just filed a bug report where the "paragraph text gap to border" value is incorrectly used to create a spurious gap above the border when a sub document is called into a master document. The causes may be similar. See
Issue 127205 - Additional space added in Master document which is not present in the sub document and is equal to 'Paragraph > Spacing > Gap to Top border'