1. 14 Nov, 2018 1 commit
  2. 08 Nov, 2018 1 commit
    • Jehan's avatar
      Issue #2431: After coloring a selection and exporting to PDF, file... · ba98b98f
      Jehan authored
      ... only shows the color (and nothing else) when "Convert bitmaps to
      vector graphics where possible" was set.
      
      This is because gimp_drawable_histogram() only checks selected pixels.
      So let's make sure we work on a duplicate of the image so that we can
      safely remove the selection before processing the export.
      
      (cherry picked from commit 679e3412)
      ba98b98f
  3. 06 Aug, 2018 1 commit
  4. 11 Jul, 2018 1 commit
  5. 18 Apr, 2018 1 commit
  6. 10 Dec, 2017 1 commit
  7. 19 Jun, 2017 3 commits
    • Jehan's avatar
      plug-ins: fix comment explaining cairo_save(). · e2d1a57e
      Jehan authored
      Current comment was implying that PDF had some kind of fixed PPI, or
      that a 72 PPI was hardcoded in cairo. This is not at all what this is
      about. Cairo simply has a concept of user-space coordinates, and from
      what I gather, it seems that this is set as "point", the typographical
      unit of measure (not as a screen point). In such context, cairo_scale()
      is used to update the transformation matrix (which will transform from
      user to device units, i.e. pixels) so that we can draw with pixels. In
      other words, both the user and device units will be pixels in subsequent
      calls.
      It turns out that 1 inch == 72 points. This is not a PPI/DPI at all and
      the comment was completely misleading.
      e2d1a57e
    • Jehan's avatar
      plug-ins: fill the background color inconditionally on full image size. · a2b438cc
      Jehan authored
      No need to loop through layers, which may be wrong anyway with
      layers-as-pages. Also we were using the layer sizes without even
      checking their offsets yet filling from (0, 0). This code was flawed in
      many aspects.
      a2b438cc
    • Lionel's avatar
      Export layers as pages to pdf / Reverse pages order · 4a05ddeb
      Lionel authored
      Added a "Reverse Order" option when "Layers as pages" is checked.
      "Layers as pages" option is greyed out if the image has only 1 layer.
      4a05ddeb
  8. 16 Jun, 2017 1 commit
    • Jehan's avatar
      Bug 783528 - PDF export ignores layer masks. · dd6dab11
      Jehan authored
      Cairo doc is pretty clear about cairo_mask_surface():
      > A drawing operator that paints the current source using the alpha
      > channel of @surface as a mask
      Therefore when creating a mask surface, it must be in one of
      CAIRO_FORMAT_* with an alpha channel and the mask data must be copied
      into this alpha channel. I chose CAIRO_FORMAT_A8 (a format with alpha
      only) which I map to "Y u8" babl format in GEGL so that
      gegl_buffer_copy() copies the contents of Y into A.
      dd6dab11
  9. 15 Jun, 2017 1 commit
    • Jehan's avatar
      plug-ins: properly "Apply layer masks before saving" when checked. · 0bd94f17
      Jehan authored
      The `if` test was inverted. When the option is checked, we don't want to
      add the GIMP_EXPORT_CAN_HANDLE_LAYER_MASKS capability so that
      gimp_export_image() applies the mask.
      This is a first step to fix bug 783528, but it's not finished. Right
      now, when the option is unchecked, the mask is simply ignored. We want
      to export a PDF mask instead.
      0bd94f17
  10. 14 Jun, 2017 4 commits
    • Jehan's avatar
      plug-ins: vectorize and apply-masks checked by default for PDF export. · 90219a02
      Jehan authored
      They used to be TRUE by default but that was overwritten. This has been
      fixed in commit c08cf411. Let's bring these defaults back.
      90219a02
    • Jehan's avatar
      plug-ins: create file-pdf-save2 with the additional parameter. · c8550c95
      Jehan authored
      And revert file-pdf-save to its previous signature before commit
      d03de527. For compatibility reason, we can't change the signature of a
      procedure available in previous stable releases.
      Also revert file-pdf-save-multi for the same reason. I don't create a
      file-pdf-save-multi2 though even though layers-as-pages could still be
      meaningful there (creating a multi-page PDF from several multi-layers
      images) but that's likely a special case which can be dealt with later.
      Obviously the interactive export will use file-pdf-save2.
      c8550c95
    • Jehan's avatar
      plug-ins: only check non-defaut parameters in non-interactive mode. · c08cf411
      Jehan authored
      Otherwise default values are not taken into account in interactive mode.
      In particular, we want ignore-hidden to be checked (TRUE) by default,
      because this is the most obvious behavior (WYSIWYG).
      c08cf411
    • Lionel's avatar
      Bug 382688 - Export layers as pages to PDF file · d03de527
      Lionel authored
      Add feature to export multiple layers to multiple pages.
      Fixed the deprecated functions.
      Fixed how transparent/invisible layers are handled.
      d03de527
  11. 05 Mar, 2017 1 commit
  12. 10 Jun, 2016 2 commits
  13. 08 Oct, 2015 1 commit
  14. 25 Jul, 2015 1 commit
  15. 24 May, 2015 1 commit
  16. 28 Jan, 2015 1 commit
  17. 25 Sep, 2014 1 commit
  18. 29 Jul, 2014 2 commits
  19. 01 May, 2014 2 commits
  20. 29 Apr, 2014 1 commit
  21. 27 Jan, 2013 1 commit
  22. 15 Jan, 2013 1 commit
  23. 09 Jan, 2013 1 commit
  24. 21 Nov, 2012 3 commits
  25. 11 Nov, 2012 1 commit
  26. 06 Sep, 2012 1 commit
  27. 21 Jun, 2012 1 commit
  28. 09 Jun, 2012 1 commit
  29. 05 Feb, 2012 1 commit
  30. 31 Dec, 2011 1 commit
    • Barak Itkin's avatar
      Fix the bugs in the conversion from drawables to cairo surfaces. · d2076552
      Barak Itkin authored
      Most of the code was taken from the print plugin, and it includes iterating
      over pixel regions (instead of fetching them at once), correct support for RGBA
      (which was buggy previously), etc.
      This commit removes the usage of A8 cairo surfaces for GRAY layers, simply
      because it seems not to work. This should be investigated and fixed in order
      to optimize the file size (by saving gray images as gray).
      Also should be checked is why we treat the cairo bpp as 4 when calculating the
      pixel locations in RGB cairo buffers. The print plug-in does this and it works,
      and when I tried 3 it didn't work. May be because of word alignment...
      d2076552