Support » Plugin: PDF Image Generator » CMYK PDFs don’t get converted to RGB thumbnails

  • Hi Mizuho,

    maybe I found a little bug. I’m trying to get thumbnails for CMYK PDF files. Your great plugin creates those thumbnails but not with the “-profile” function from imageMagick. So that image colors are not that good. I know your plugin tries to find out if the PDF is in CMYK and then adds the “-profile” part to the convert command. But in your pdf-image-generator.php on line 435 it checks the wrong file:

    On line 434 it says:
    $get_color = exec( "identify -format '%[colorspace]' {$file_url}", $output, $return );

    But the variable “$file_url” isn’t the original pdf file url. It’s the new jpg file url.

    The correct code should be:
    $get_color = exec( "identify -format '%[colorspace]' {$file}", $output, $return );

    Please correct me if I’m wrong.

Viewing 1 replies (of 1 total)
  • Plugin Author Mizuho Ogino


    Hi hhgk.

    Thank you for reporting.
    As you pointed out, this is a little but significant bug!
    I will check the code, and release the fixed version as soon as it’s ready.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘CMYK PDFs don’t get converted to RGB thumbnails’ is closed to new replies.