Search found 3 matches

by cshark
2017-12-08T12:17:08-07:00
Forum: Magick.NET
Topic: jpeg:extent in Magick.NET
Replies: 4
Views: 6146

Re: jpeg:extent in Magick.NET

The "//code here" and "//more code here" parts are just changing the image's width and height, and resolution. I simply excluded those parts to reduce clutter since they're irrelevant. However, loading the settings first and then using them like you did did the trick. At a later point I also forced ...
by cshark
2017-12-08T00:39:23-07:00
Forum: Magick.NET
Topic: jpeg:extent in Magick.NET
Replies: 4
Views: 6146

Re: jpeg:extent in Magick.NET

The input image is any image a user selects from a website. I tested this with a jpg image (I could pm you this because copyright), but theoretically it should work with any image. Filesize reads the user's input from a textbox in a menu as an int, so this can be any numeric value. I tested it with ...
by cshark
2017-12-07T05:57:57-07:00
Forum: Magick.NET
Topic: jpeg:extent in Magick.NET
Replies: 4
Views: 6146

jpeg:extent in Magick.NET

Hi everyone, I want to set a maximum file size for an image if a user enters a value. My current attempt looks as following: private MagickImage Image(MagickImage image, int resolution) { //some code here if (Filesize > 0) { image.Settings.SetDefine(MagickFormat.Jpeg, "extent", Filesize.ToString() +...