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

WIP: Use 'sharp' for thumbnail generation #577

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

apage43
Copy link

@apage43 apage43 commented Apr 13, 2023

This is mostly to fix #448 but also speeds thumbnail generation up quite a bit - I know this was tried before and ran into build issues.

I looked for instances of sharp and electron-build showing up in the same package.json to crib a workaround from - specifically I lifted from https://github.com/bitfocus/companion/blob/master/package.json - I'm not particularly familiar with node or Electron, and I suspect this doesn't yet fully work on Linux and Mac, but I'm likely to run this local fork indefinitely if no other fix for the crash issue lands so I figured I'd post the progress I'd made on it.

apage43 added 2 commits April 13, 2023 18:25
This works around an Electron crash that occurs when creating thumbnails
for very large images when using Canvas for resizing.

* Add 'sharp' library
* Bump electron minor version to deal with lovell/sharp#3384

fixup
@RvanderLaan
Copy link
Collaborator

Awesome, thanks for taking the time to dive into this! That setup from the Companion repo seems to be cross-platform, I'll try to find some time soon to see if it's compatible on my Linux machine too

@apage43 apage43 marked this pull request as ready for review April 16, 2023 06:24
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.

Crashing to blank screen upon scanning Panoramas
2 participants