Bug 613140 - PDF intermittently ignoring "width" flag on imagedata in PDF builds
PDF intermittently ignoring "width" flag on imagedata in PDF builds
Status: CLOSED ERRATA
Product: Publican
Classification: Community
Component: publican (Show other bugs)
1.6
All Linux
low Severity medium
: ---
: ---
Assigned To: Jeff Fearn
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-09 16:00 EDT by Deon Ballard
Modified: 2010-11-23 23:17 EST (History)
4 users (show)

See Also:
Fixed In Version: publican-2.2-0.fc13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-08 16:42:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
docs pdf (2.74 MB, application/pdf)
2010-07-09 16:00 EDT, Deon Ballard
no flags Details

  None (edit)
Description Deon Ballard 2010-07-09 16:00:43 EDT
Created attachment 430749 [details]
docs pdf

I have the image size set to width="444px" (or smaller) for every single image in chapters 2 and 5 in this PDF. Some of those sizes are honored and some, very obviously, are not. Everything is a PNG and has XML like this:

<informalfigure>
     <mediaobject>
          <imageobject role="html">
               <imagedata fileref="images/bundle-recipe.png" />
          </imageobject>
          <imageobject role="fo">
              <imagedata fileref="images/bundle-recipe.png" width="444px" />
          </imageobject>
     </mediaobject>
</informalfigure>

I cannot find any difference between the XML or the PNGs themselves for why one image is resized and the other isn't.

Normal info:
RHEL 5.4 Client
publican-2.1-0.el5
publican-jboss-1.9-0.el5
Comment 1 Deon Ballard 2010-07-09 16:57:47 EDT
I'm sorry, that's chapter 1 and chapter 5. Not chapter 2.
Comment 2 Jeff Fearn 2010-07-27 00:42:22 EDT
This use of role isn't supported in DocBook or Publican, does it work if only use one imageobject?
Comment 3 Deon Ballard 2010-07-27 09:36:17 EDT
Sagehill thinks "role" is supported for Docbook images:
http://www.sagehill.net/docbookxsl/GraphicSelection.html

And this worked in versions of publican pre-1.0.
Comment 4 Jeff Fearn 2010-07-27 22:41:42 EDT
(In reply to comment #3)
> Sagehill thinks "role" is supported for Docbook images:
> http://www.sagehill.net/docbookxsl/GraphicSelection.html

Well there you go, you learn something new everyday!

> And this worked in versions of publican pre-1.0.    

The XSL that handles this is in the default DocBook XSL and has not been overridden by Publican.

Does it work consistently if you build the book in Brew?
Comment 5 Jeff Fearn 2010-08-06 01:32:23 EDT
ah ha!

The width is getting set to max_image_width if the image is wider than max_image_width, even if the width being asked for is less than max_image_width.

If the width requested in the XML is smaller than max_image_width it should be honoured.

Fixed in Build: 2.1-0%{?dist}.t26
Comment 6 Ruediger Landmann 2010-08-07 09:50:17 EDT
Verified that you can set an image-width smaller than 444px for an image wider than 444px in PDF in build: 2.1-0%{?dist}.t29
Comment 7 Fedora Update System 2010-10-06 01:48:53 EDT
publican-2.2-0.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/publican-2.2-0.fc13
Comment 8 Fedora Update System 2010-10-06 01:50:12 EDT
publican-2.2-0.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/publican-2.2-0.fc12
Comment 9 Fedora Update System 2010-10-06 01:50:15 EDT
publican-2.2-0.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/publican-2.2-0.fc14
Comment 10 Fedora Update System 2010-10-08 16:40:20 EDT
publican-2.2-0.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.