Search found 50 matches

by i73
2019-05-14T13:20:28-07:00
Forum: Users
Topic: Is it possible to pass a directory or batch out multiple files over CLI?
Replies: 2
Views: 3890

Is it possible to pass a directory or batch out multiple files over CLI?

I'm testing the metrics of a decode operation using IM and another decoder format, I need to keep the overhead of a CLI operation as minimal as possible so I'm looking for a way to decode a folder of .webp images to .png while only calling convert once.
by i73
2019-05-02T12:33:10-07:00
Forum: Users
Topic: Decode PNG into raw RGB data
Replies: 5
Views: 6463

Re: Decode PNG into raw RGB data

fmw42 wrote: 2019-05-02T11:01:40-07:00 You need to know the size only when reading the raw RGB file. You will also need to know the depth when reading it. See https://imagemagick.org/Usage/formats/#rgb
I've added

Code: Select all

-depth 8
to my code, did you miss that or am I doing it wrong?
by i73
2019-05-02T09:26:38-07:00
Forum: Users
Topic: Decode PNG into raw RGB data
Replies: 5
Views: 6463

Decode PNG into raw RGB data

Long story short I need to decode to raw RGB in order to encode to Av1 then decode it back to a workable file (testing new tech) and I just need to know if this is the correct way to decode a png to raw RGB:

Code: Select all

convert -size "3x3" -depth 8 encodeTest.png -colorspace RGB encodeTest.rgb
by i73
2018-12-14T10:42:38-07:00
Forum: Magick.NET
Topic: Converting a image to Raw video format
Replies: 4
Views: 10254

Re: Converting a image to Raw video format

IM contains no code to read or write video files (except animated GIF, if we can call that "video"). Instead, IM calls ffmpeg to do those jobs. If you simply want to convert video from one format to another, IM is the wrong tool. I suggest you use ffmpeg directly. Yeah unfortunately I've ...
by i73
2018-12-13T16:14:45-07:00
Forum: Magick.NET
Topic: Converting a image to Raw video format
Replies: 4
Views: 10254

Re: Converting a image to Raw video format

snibgo wrote: 2018-12-13T16:02:36-07:00 IM uses ffmpeg as delegate for reading and writing video. If ffmpeg supports .y4m, then so does IM.
Do you mean IM uses FFmpeg as a task to convert to .y4m?
by i73
2018-12-13T15:12:47-07:00
Forum: Magick.NET
Topic: Converting a image to Raw video format
Replies: 4
Views: 10254

Converting a image to Raw video format

It's not specific for .NET but IM but since I'll use it in .NET I'll ask here:

I'm wondering if I'm able to convert to raw video format (raw frames) with IM, Ideally .y4m , to then convert to another format, Is this possible with IM?
by i73
2018-04-12T13:39:33-07:00
Forum: Users
Topic: Resizing raw byte array?
Replies: 1
Views: 2712

Resizing raw byte array?

I'm currently exporting my images in raw byte array data, 0-255. Is there a way I could resize this (With the width, height and stride) or would I have to convert it to a bitmap then run it through IM? Would I also be able to convert it with IM? Then resize?
by i73
2017-08-08T14:09:17-07:00
Forum: Magick.NET
Topic: [Closed] Rotating images before using image.Composite
Replies: 2
Views: 10979

Re: Rotating images before using image.Composite

For some reason rotate was not working with my original image, but now it is.. Thanks guys.
by i73
2017-08-08T13:39:23-07:00
Forum: Magick.NET
Topic: [Closed] Rotating images before using image.Composite
Replies: 2
Views: 10979

[Closed] Rotating images before using image.Composite

Hello, I am trying to rotate some images before calling Composite on them (I am adding 6 images to a single image) wondering how best to do this, seeing how I am not having any luck: I've tried the following: //This does not rotate, I even tried writing the image right after. MagickImage image = new...
by i73
2017-07-10T13:14:40-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34662

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

fmw42 wrote: 2017-07-07T19:13:20-07:00 It would be nice to know if snibgo's suggestion worked or not?
No it did not. It is the exact same command I was doing myself before.
by i73
2017-07-07T16:06:03-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34662

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Thanks guys, I've already written up something myself. This is a great community thanks for all your help, no rush for the PNG dev just tell him to PM me if he needs to, I can assume my problem is extremely rare.
by i73
2017-07-07T13:28:17-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34662

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

If you need 32-bits, then why not just add PNG32:output.png? I hate to sound condescending I'm not trying to, but the original reason I opened this thread is because I need the converted image to keep the same bit depth as the input (originally I was using 32 but opened this question to find a way ...
by i73
2017-07-07T11:47:53-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34662

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Ah, okay I understand. My issue was never really with IM telling me different data (Just because my method was not accepting 8 bit), I think it was the others telling me that it was 32 bit because IM way saying it was.

I really appreciate all your help! Thanks again!
by i73
2017-07-07T11:10:06-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34662

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

On your mask reprocessing you could just add -threshold 50% after the resize. That will make it 1-bit, but it will be aliased. You could also replace -resize with -sample. That will keep your 1-bit image, but again it will be aliased. On your red colored image, you could try adding -type truecolor ...