Search found 18 matches

by GoncaloM
2019-05-23T15:46:48-07:00
Forum: Magick.NET
Topic: How to fit image sizes correctly
Replies: 15
Views: 119299

Re: How to fit image sizes correctly

Here's my code: using (MagickImage image = new MagickImage(ssimageBinary)) { image.Density = new Density(sstargetDensity); MagickGeometry size = new MagickGeometry(sstargetWidth, sstargetHeight); // This will resize the image to a fixed size without maintaining the aspect ratio. // Normally an image...
by GoncaloM
2019-05-23T15:43:17-07:00
Forum: Magick.NET
Topic: How to fit image sizes correctly
Replies: 15
Views: 119299

Re: How to fit image sizes correctly

Hi and thank you for your answer.
Do you have a sample of this working using Magick.NET?
It's the first time I'm dealing with this API to work with images and I'm not getting there.
Really appreciate your help.
Cheers
by GoncaloM
2019-05-23T08:59:00-07:00
Forum: Magick.NET
Topic: How to fit image sizes correctly
Replies: 15
Views: 119299

How to fit image sizes correctly

I'm using Magick.NET to generate some images for a splash screen for Android and iOS( https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/index.html#launch-storyboard-images ). But I'm having some issues with the resize. We can have a square or rectangle image and portrai...