Search found 25 matches

by GlennIM
2020-05-09T21:01:33-07:00
Forum: Magick.NET
Topic: Resize Any Size Image To a Fixed Size ?
Replies: 0
Views: 947

Resize Any Size Image To a Fixed Size ?

I need to resize all kinds of images of different sizes to a fixed size for display on Instagram 1080 x 1080. Is there some c# code that will accomplish this?

I realize that smaller images will have to be "stretched" to fix that size and larger images "shrunk" to fit that size.

Thanks in Advance
by GlennIM
2020-02-09T08:26:54-07:00
Forum: Magick.NET
Topic: Finding Memory Leak?
Replies: 0
Views: 2593

Finding Memory Leak?

If anyone is good at finding memory leaks, maybe they can point me in the right direction why the method below is causing memory to not be released when called multiple times in the same program. Calling it a few times it is OK, but when done many times over, the application crashes "Out-Of-Memory"....
by GlennIM
2019-10-20T06:43:38-07:00
Forum: Magick.NET
Topic: Create 4K Ultra HD/HD Images From Existing Image?
Replies: 1
Views: 3564

Create 4K Ultra HD/HD Images From Existing Image?

I've heard that images that are 4K Ultra HD/HD Images are more likely to give higher rankings in Googles Image Search and give higher rankings in Social Media platforms like Facebook, Instagram and Pinterest. Is it possible to create 4K Ultra HD/HD Images from an existing image using Magick.NET ? If...
by GlennIM
2019-08-07T10:37:20-07:00
Forum: Magick.NET
Topic: Best C# Code To Overlay Text on a .JPG Image?
Replies: 5
Views: 7613

Re: Best C# Code To Overlay Text on a .JPG Image?

What value do you think I should I use for the Font Point Size? I wrote a function GetProperFontSize(MagickImage img) below to get the suggested font size from the image width. Then I call the following to get the FontPointsize and set it for the image read settings. var tempimage = new MagickImage(...
by GlennIM
2019-08-06T21:44:00-07:00
Forum: Magick.NET
Topic: Best C# Code To Overlay Text on a .JPG Image?
Replies: 5
Views: 7613

Re: Best C# Code To Overlay Text on a .JPG Image?

var tempimage = new MagickImage(@"D:\\beautiful-girl-woman-young-127405_WEB.jpg"); int textWidth = tempimage.Width - 10; tempimage.Dispose(); MagickReadSettings settings = new MagickReadSettings() { FillColor = MagickColors.White, // -fill black StrokeColor = MagickColors.Black, Font = "Arial", // ...
by GlennIM
2019-07-25T10:43:29-07:00
Forum: Magick.NET
Topic: Best C# Code To Overlay Text on a .JPG Image?
Replies: 5
Views: 7613

Best C# Code To Overlay Text on a .JPG Image?

Does anyone have the best C# code to overlay text in different font's and colors on an .JPG image? I'm trying to put "motivational" messages in the middle of images in .JPG format.

Thanks, Glenn
by GlennIM
2019-06-06T08:01:56-07:00
Forum: Magick.NET
Topic: Trim White Space From Image?
Replies: 2
Views: 5969

Re: Trim White Space From Image?

I added this line to the code below and it worked! Is that the correct code to use?

Code: Select all

 image.ColorFuzz = new Percentage(5);
by GlennIM
2019-06-05T22:41:02-07:00
Forum: Magick.NET
Topic: Trim White Space From Image?
Replies: 2
Views: 5969

Trim White Space From Image?

I'm trying to remove "white space" from images using the Trim() function but doesn't seem to work. Here is my code and the sourceImgTrimmed. What is wrong? string sourceImg = @"D:\\large_1683_EK08BK_Open_WEB.jpg"; string sourceImgTrimmed = @"D:\\large_1683_EK08BK_Open_Trimmed.jpg"; using (MagickImag...
by GlennIM
2019-05-13T22:02:26-07:00
Forum: Magick.NET
Topic: Creating a Slide Show using MagicK.net ?
Replies: 1
Views: 5499

Creating a Slide Show using MagicK.net ?

Is there a way to create a slide show from a series of images using C#, perhaps combining them into a .GIF ?
by GlennIM
2019-04-20T07:50:45-07:00
Forum: Magick.NET
Topic: Permission Denied When Writing Image To File Again
Replies: 0
Views: 11150

Permission Denied When Writing Image To File Again

I'm writing images to a directory on my drive and I put each image I write into Image parameter of a CheckBox control using the code below... Each checkbox is then added to a FlowLayoutPanel control. myCheckBox.Image = Image.FromFile(filetarget); Then when I select the CheckBox control that is in a ...
by GlennIM
2019-04-03T13:04:52-07:00
Forum: Magick.NET
Topic: Freeing Up Memory?
Replies: 0
Views: 10466

Freeing Up Memory?

I have a method that creates several new MagickImage objects and this method gets run many times through the execution of my application. I see the memory increasing rapidly and the application goes into Non-Responding state because it is using a lot of memory. After the method is called I call GC.C...
by GlennIM
2019-03-20T21:25:37-07:00
Forum: Magick.NET
Topic: 3D Effects ?
Replies: 0
Views: 9413

3D Effects ?

I'm trying to convert some of the 3-D logos on https://www.imagemagick.org/Usage/advanced/#3d-logos to C# and don't have a clue how to write the code. Either one of 2 sets of code... convert logo.png -alpha extract -blur 0x6 -shade 110x30 -normalize \ logo.png -compose Overlay -composite \ logo.png ...
by GlennIM
2018-10-31T11:42:05-07:00
Forum: Magick.NET
Topic: C# Code for Frame, adding a 3D-like border ?
Replies: 1
Views: 5571

Re: C# Code for Frame, adding a 3D-like border ?

UPDATE:

Never Mind. It was easy to figure out using the C# API
by GlennIM
2018-10-27T21:01:50-07:00
Forum: Magick.NET
Topic: C# Code for Frame, adding a 3D-like border ?
Replies: 1
Views: 5571

C# Code for Frame, adding a 3D-like border ?

Does anyone have the C# equivalent code for creating 3D Like Borders as shown at http://www.imagemagick.org/Usage/crop/#frame using the frame operator? These specific command line options work but have no clue as to converting them to Magick.NET C# code: D:\>magick imagetotest.jpg -frame 10x10 image...
by GlennIM
2018-10-20T21:41:54-07:00
Forum: Magick.NET
Topic: What Transformation For .JPG Format ?
Replies: 1
Views: 4752

What Transformation For .JPG Format ?

I can only use .JPG image format for my images.

What transformation are possible to use for that format at https://www.imagemagick.org ?

Thanks