Skip to content

Allow processing of PDF files with ImageMagick - #2431

Merged
rfay merged 3 commits into
ddev:masterfrom
gilbertsoft:imagemagick
Aug 12, 2020
Merged

rfay merged 3 commits into
ddev:masterfrom
gilbertsoft:imagemagick

Conversation

@gilbertsoft

@gilbertsoft gilbertsoft commented Jul 30, 2020 •

Copy link
Copy Markdown
Contributor

The Problem/Issue/Bug:

TYPO3 is able to convert PDF files to images for a preview with the help of ImageMagick / GraphicsMagick but ImageMagick blocks PDF files by default on Debian.

How this PR Solves The Problem:

The policy.xml file distributed by the APT package on Debian is added to the web server container image and the related line is commented out to have PDF conversion enabled by default in DDEV.

Manual Testing Instructions:

Go to the TYPO3 Backend and under environment in the admin / install tool run the image test. There should not be an error and the PDF should be shown as image in the related test.

grafik

The important test:

grafik

In case something is broken it looks like this:

grafik

Automated Testing Overview:

Related Issue Link(s):

Release/Deployment notes:

@gilbertsoft
gilbertsoft requested a review from rfay July 31, 2020 10:34
@gilbertsoft

Copy link
Copy Markdown
Contributor Author

As you can see from the Slack thread the issue is solved by this change.

@rfay

rfay commented Aug 10, 2020

Copy link
Copy Markdown
Member

I rebased this, pushed an image for it, gave it a specific image.

@rfay rfay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, this is the same policy.xml as in the original container, so this PR as yet does nothing.

Please update to provide a policy.xml which does what you want. Note that this has been rebased, so you'll have to reset to your remote after fetching it.

To go in, this will also have to have a manual testing technique provided, or I won't have any idea how to determine if it works right.

@gilbertsoft
gilbertsoft requested a review from rfay August 11, 2020 20:52

@rfay rfay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me. Thanks for all the help getting through this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants