Skip to content

Use png format instead of jpeg

Peter Epp requested to merge issue/media_pdf_thumbnail-3325832:8.x-5.x into 8.x-5.x

Changing the format from jpeg to png allows transparent backgrounds, which eliminates the issue of black backgrounds when using the jpeg format if the PDFs are transparent.

Another patch provides a solution to this problem, but it bypasses the Spatie PDF to Image library which has a number of advantages with the options it provides. As such, it would be ideal to keep using that, otherwise this module should probably provide a more comprehensive implementation of it's own imagick thumbnail generation function that can take care of the various options that may be useful.

Edited by Peter Epp

Merge request reports