Skip to content
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

Image Compression #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

JoelAlphonso
Copy link
Collaborator

Add image compression via the charcoal-image-compression package

Comment on lines +612 to +613


Copy link
Member

Choose a reason for hiding this comment

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

Superfluous line breaks

Suggested change

Comment on lines +349 to +352
if ($val) {
$this->imageCompression->compress($val);
}

Copy link
Member

Choose a reason for hiding this comment

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

If we using effects to create intermediate images (what we expect to show on the web site), why compress the the selected (original) image?

If we want to compress the original image, we should be attaching the image compression service to the ElfinderConnectorAction in charcoal-admin instead of charcoal-property.

@mcaskill mcaskill requested review from mducharme and BeneRoch April 8, 2022 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants