1. 17 Apr, 2019 9 commits
  2. 16 Apr, 2019 2 commits
  3. 15 Apr, 2019 2 commits
    • Jehan's avatar
      plug-ins: export linear WebP if and only if the work image was 8-bit... · b9458f8a
      Jehan authored
      ... linear itself AND if we export the profile.
      Implement similar logics to WebP export as I did to JPEG in my previous
      commit.
      b9458f8a
    • Jehan's avatar
      plug-ins: export linear JPEG if and only if the work image was 8-bit... · 5f4cf535
      Jehan authored
      ... linear itself AND if we export the profile.
      
      In most cases we want to save 8-bit image formats (here JPEG) as
      non-linear, even though the work image may have been linear itself (yet
      with higher bit depth). The reasons are shadow posterization on low bit
      depth, and the fact that JPEG compression was designed for perceptually
      uniform RGB and introduces shadow artifacts with linear RGB (see #1070,
      message by Elle Stone). The only exception is when the creator was
      working explicitly on 8-bit linear (not higher bit depth) AND if we
      export the profile (otherwise most loaders around assume sRGB). In such
      a case, let's consider the creator knows what one is doing and keep the
      exported image linear.
      
      Similar logics is already used in PNG exporter (though a bit of a
      variant since PNG supports 16-bit so it is instead: 8-bit linear without
      profile is promoted to 16-bit non-linear, and kept 8-bit linear with
      profile).
      5f4cf535
  4. 14 Apr, 2019 1 commit
    • Jehan's avatar
      Issue #3253: exporting to webp from 32-bit float linear image... · 7a4b313b
      Jehan authored
      ... produces incorrect result.
      Similar to previous fixes to JPEG and PNG exporters. Here WebP always
      export 8-bit per channel colors, so let's always keep it non-linear.
      Simply when the original data was linear, if we save the profile,
      convert it to sRGB before exporting.
      7a4b313b
  5. 13 Apr, 2019 3 commits
  6. 12 Apr, 2019 6 commits
    • Jehan's avatar
      app: new "gex" format (GIMP Extension). · 406279e4
      Jehan authored
      File extension (.gex) may still change if anything better is proposed.
      This format is currently just a compressed archive containing the
      extension data (plug-in, brushes or whatever) and the metadata file.
      
      For now, opening such file will simply install it as a new extension,
      keeping all file permissions and structure. Of course in the future, it
      will have to trigger a confirmation dialog.
      
      Currently the compression used is zip, which is just a first draft. This
      is not a decisive choice as well. We could use some tarball compressed
      in whatever other compression algorithm. I use libarchive as a new
      dependency to support unarchiving as it seems to be a common library
      (and since it is already used by AppStream-glib anyway, this doesn't add
      any actual dependency, just make it direct).
      406279e4
    • Jehan's avatar
      app: allow core file procedure which don't return an image. · 5c9114ae
      Jehan authored
      This is useful to be able to support file formats other than image
      formats. In particular I will use this in the next commit to support a
      "GIMP extension" format. When GIMP will open such file, it will
      install an extension (not open an image on canvas).
      
      This is an internal flag only, i.e. only usable from core GIMP. File
      formats which a plug-in can register are still only image file formats.
      5c9114ae
    • Michael Natterer's avatar
      app: remove defines GIMP_BRUSH_FILE_VERSION and GIMP_PATTERN_FILE_VERSION · aee6d44b
      Michael Natterer authored
      they were unused and wrong. Also clean up the brush and pattern
      headers a bit.
      aee6d44b
    • Jehan's avatar
      Issue #3224: Fill by Line Art Detection Bug (Fatal Error with Crash). · 5d5ced88
      Jehan authored
      Typos in gimp_pickable_contiguous_region_by_line_art().
      Thanks to Massimo for debugging these!
      5d5ced88
    • Jehan's avatar
      Issue #3193: Wrong colors after exporting 8bpc RGB png from 32f... · c5fae74a
      Jehan authored
      ... linear XCF.
      When choosing a specific pixel format (other than "Automatic"), we
      always export as non-linear. Therefore if we were going to save a linear
      profile, make sure we also convert it to sRGB too.
      c5fae74a
    • Jehan's avatar
      Issue #1070: exporting to jpeg from 32-bit float linear image... · 8594275b
      Jehan authored
      ... produces jpeg in linear color space.
      The problem was that we were anyway always exporting to non-linear while
      attaching a linear profile. A first approach would have been to export
      in linear instead when the work image is linear, as proposed by mitch in
      a first version of the patch. Yet as Elle Stone notes, it is not a great
      idea to export 8-bit images as linear.
      Instead let's continue to always export as non-linear, as we were
      already doing. Yet when we also save a profile, and this one was
      originally linear, let's convert it to sRGB TRC before exporting.
      8594275b
  7. 11 Apr, 2019 3 commits
  8. 10 Apr, 2019 1 commit
  9. 09 Apr, 2019 1 commit
  10. 07 Apr, 2019 1 commit
    • Jehan's avatar
      .gitlab: improve templates. · 9fd8d65f
      Jehan authored
      Add a note asking bug reporters to test with the latest stable version
      of GIMP or with dev code (not with old stable versions).
      Also add some labels on bug reports and feature requests.
      9fd8d65f
  11. 06 Apr, 2019 2 commits
  12. 04 Apr, 2019 4 commits
  13. 01 Apr, 2019 3 commits
  14. 31 Mar, 2019 2 commits
    • Ell's avatar
      Issue #3025 - "File/New" doesn't honor "precision" choice ... · 033082dd
      Ell authored
      ... for "Edit/Preferences/Default Image"
      
      In GimpTemplateEditor, don't use gimp_prop_enum_combo_box_new() for
      the "Precision" combo-box, and rather synchronize the combo-box and
      the template manually, since we only want to update the "Gamma"
      combo-box according to the precision when it changes through the
      UI, and not when the template's precision otherwise changes.
      
      This fixes an issue where we'd always set the default gamma value
      when resetting the editor's template, overwriting the template's
      original gamma value.
      033082dd
    • Rūdolfs Mazurs's avatar
      Update Latvian translation · 79225868
      Rūdolfs Mazurs authored
      (cherry picked from commit 7e26d664)
      79225868