Some thumbnails appear negative, ading a colorspace fixes this.

Created on 2 October 2020, almost 4 years ago
Updated 13 June 2024, 4 months ago

Some pdf thumbnails generated with pdfpreview appear to be negative.

These pdf's where online compressed with https://www.ilovepdf.com/

Explicitly setting the colorspace with -colorspace "sRGB" solves the issue for these files.

Thumbnails's from other pdf's did not seem to have side effects form this setting but I'm not sure whether this would be usefull for all pdf's and should be added to the mdule.

I wil add a pach for other users with this similar problem.

πŸ“Œ Task
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Bram Linssen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States kenfordesign

    Great module!

    I can confirm this works and fixes the black background in Drupal 9.5.11. Can this please be moved into the 8.x-1.1 and 2.0.x-dev branches?

  • πŸ‡ΊπŸ‡ΈUnited States kenfordesign

    Is this ready to commit to the 8.x-1.1 and 2.0.x-dev branches?

  • Status changed to Postponed: needs info 4 months ago
  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    As per #5 I've had mixed experience with this. I tested the sample in #6 and I'm not seeing the issue.

    If you're having issues with the PDF in #5 please share the generated image here and the output of convert -version.

    For example:

    $ convert -version
    Version: ImageMagick 7.1.1-32 Q16-HDRI x86_64 22207 https://imagemagick.org
    Copyright: (C) 1999 ImageMagick Studio LLC
    License: https://imagemagick.org/script/license.php
    Features: Cipher DPC HDRI Modules OpenMP(4.5) 
    Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib heic jng jpeg jxl lcms ltdl lzma pangocairo png ps raw rsvg tiff webp x xml zlib zstd
    Compiler: gcc (13.2)
    
  • πŸ‡ΊπŸ‡ΈUnited States kenfordesign

    The patch fixes the issue with this version. Can it be rolled into the latest release or at least the dev verion?

    $ convert -version
    Version: ImageMagick 6.9.10-68 Q16 x86_64 2024-01-12 https://imagemagick.org
    Copyright: Β© 1999-2019 ImageMagick Studio LLC
    License: https://imagemagick.org/script/license.php
    Features: Cipher DPC Modules OpenMP(3.1)
    Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff wmf x xml zlib

  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    @kenfordesign thanks for the version info. Can you please test with the PDF in #6 and attach the resulting image? Or supply another PDF?

Production build 0.71.5 2024