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

Skip image compressing for macOS #714

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

nilsreichardt
Copy link
Member

Summary

This PR addresses a limitation with the flutter_image_compress library on macOS. Due to a known issue, the image compressor does not work on macOS, leading to potential runtime errors or unexpected behavior.

Changes:

  • If the platform is macOS, the image compression step is skipped and the original file is returned unchanged.

Reason for Change:

The flutter_image_compress library has a known issue on macOS which causes the compression functionality to fail. Refer to the following issue for more details: fluttercandies/flutter_image_compress#255.

By skipping the image compression step on macOS, we ensure that our users do not encounter unexpected errors or issues while using the app on this platform. The changes are a temporary measure until a fix or alternative solution is found for the underlying library issue.

Testing:

  • Manual testing on macOS confirms that images are not compressed and the app behaves as expected.

Related Tickets

Fixes #713

@docs-page
Copy link

docs-page bot commented Aug 6, 2023

To view this pull requests documentation preview, visit the following URL:

docs.page/sharezoneapp/sharezone-app~714

Documentation is deployed and generated using docs.page.

@github-actions github-actions bot added feature: file-sharing Files can be shared inside Sharezone e.g. by uploading them in a file-sharing folder of a course. feature: universal file features File features (downloading, preview, etc.) that are used by multiple Sharezone features. and removed platform: macos labels Aug 6, 2023
@github-actions
Copy link

github-actions bot commented Aug 6, 2023

Visit the preview URL for this PR (updated for commit 059c819):

https://sharezone-test--pr714-skip-compressing-fil-l7d9a3z0.web.app

(expires Sun, 13 Aug 2023 18:41:52 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@nilsreichardt nilsreichardt added this pull request to the merge queue Aug 6, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 6, 2023
@nilsreichardt nilsreichardt added this pull request to the merge queue Aug 6, 2023
Merged via the queue into main with commit c44b805 Aug 6, 2023
@nilsreichardt nilsreichardt deleted the skip-compressing-files-on-macos branch August 6, 2023 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: file-sharing Files can be shared inside Sharezone e.g. by uploading them in a file-sharing folder of a course. feature: universal file features File features (downloading, preview, etc.) that are used by multiple Sharezone features.
Projects
None yet
2 participants