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

fix: update sharp to fix images under Electron #104

Merged
merged 1 commit into from Jan 3, 2023
Merged

Conversation

nickcernis
Copy link
Member

@nickcernis nickcernis commented Jan 3, 2023

Adopts the latest version of the Sharp library. This will allow image processing to work with the latest versions of Electron once it updates with a fix for the memory cage issue.

See lovell/sharp#3384 (this fix in Sharp is out now).
And electron/electron#36625 (this fix in Electron is not yet published).

This does not immediately fix the error outlined in #103 where starting a new site with this blueprint under Local 6.6+ causes a 502 error, but it will allow the blueprint to load once Electron and Local update. (The Local team is awaiting a patch in Electron. The workaround for now is to use Local 6.5.2 from https://localwp.com/releases/.)

Replaces #103, which fixed the issue immediately, but had the unwanted side-effect of also using unoptimized images in non-Electron contexts.

Adopts the latest version of the sharp library so that image resizing
will work with the latest versions of Electron, once it updates with
a fix for the memory cage issue.

See lovell/sharp#3384.

Replaces #103.
Copy link
Member

@theodesp theodesp left a comment

Choose a reason for hiding this comment

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

LGTM!

@nickcernis nickcernis merged commit 6c987c8 into main Jan 3, 2023
@nickcernis nickcernis deleted the nc/update-sharp branch January 3, 2023 13:07
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.

None yet

2 participants