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

compiler: replace System.Drawing on macOS and Linux (beta-3.0) #470

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

mortend
Copy link
Member

@mortend mortend commented Apr 19, 2023

This switches to use the 'sips' command on macOS or the 'convert' command (from ImageMagick) on Linux to resize images/icons, since System.Drawing isn't supported on those platforms. Doing this silences the remaining compile-time warnings when building on .NET 6.

We have also tried integrating ImageMagick.NET but that adds 90MB of native binaries to our package, seeming a bit excessive, so let's see how far we get with the system commands first.

This switches to use the 'sips' command on macOS or the 'convert'
command (from ImageMagick) on Linux to resize images/icons, since
System.Drawing isn't supported on those platforms. Doing this silences
the remaining compile-time warnings when building on .NET 6.

We have also tried integrating ImageMagick.NET but that adds 90MB of
native binaries to our package, seeming a bit excessive, so let's see
how far we get with the system commands first.
@mortend mortend merged commit b3178ba into fuse-open:beta-3.0 Apr 24, 2023
@mortend mortend deleted the net6-image branch April 24, 2023 16:57
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.

1 participant