-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WS2-1575: Card Arrangement: PNG images not being compressed #76
base: master
Are you sure you want to change the base?
Conversation
https://docs.pantheon.io/external-libraries#imagemagick Imagemagick is part of Pantheon, and they have instructions for configuring the Drupal module at the link above. |
I'm building a multidev on Pantheon now to test. |
My build failed because we need to make sure that we add the dependencies to the composer.json file. I guess that might be a different ticket, but it will need to be coordinated with this one, or it will fail. |
@juanmitriatti I have gotten a pantheon site up and running to test this. From what I can tell, the config/install files didn't get added because the profile had already been installed. So, we might need to trigger those configs being imported with the webspark_update_9003 function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my previous comments. My test environment is here: https://dev-webdirtravis.ws.asu.edu/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed. Looks good at the code level. PR to add the module in the release testing upstream is completed (ASUWebPlatforms/webspark-release-testing#78).
@tbutterf Since you have a test environment spun up, can you verify with a test? Or @bjdevil21
\Drupal::service('webspark.config_manager')->importConfigFile('imagemagick.settings.yml'); | ||
\Drupal::service('webspark.config_manager')->importConfigFile('sophron.settings.yml'); | ||
\Drupal::service('webspark.config_manager')->importConfigFile('system.image.yml'); | ||
\Drupal::state()->set('configuration_locked', TRUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juanmitriatti The importConfigFile
function requires that the file name not have the extension at the end. Also, there is a problem with that function. It should reference $filename, but it only references the undefined $name variable. So, it doesn't work. I have created a ticket that fixes that problem and issued a pull request. So, now this PR depends on that one (ASUWebPlatforms/webspark-module-webspark_utility#23).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tbutterf
Pr has been updated, please check.
Thanks for your feedback.
All pre-requisite PRs are now merged. Tested locally. It installs. Image configuration, however is still defined for GD2 image processing instead of ImageMagick: I tried re-running the configuration update hook and still the same result. Runs without errors, but the system image toolkit setting (and maybe others) aren't updated. Also, the install instructions from Pantheon aren't implemented yet. Perhaps that's related? |
@juanmitriatti I converted this PR to a Draft PR, since it will be made against the new |
Ticket URL : https://asudev.jira.com/browse/WS2-1575
I installed a new module in order to allow PNG quality compression.
From Drupal module documentation :
Requirements
ImageMagick (or GraphicsMagick) needs to be installed on your server and the convert (or gm) binary needs to be accessible and executable from PHP.
The PHP configuration must allow invocation of proc_open() (which is security-wise identical to exec()).
Consult your server administrator or hosting provider if you are unsure about these requirements.
Contrib Module URL : https://www.drupal.org/project/imagemagick
Test :
Im using ddev in my personal, it's already set in my server. However, it needs to be checked on the server side.