Search found 46 matches

by i73
2018-12-14T10:42:38-07:00
Forum: Magick.NET
Topic: Converting a image to Raw video format
Replies: 4
Views: 1525

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 already ac...
by i73
2018-12-13T16:14:45-07:00
Forum: Magick.NET
Topic: Converting a image to Raw video format
Replies: 4
Views: 1525

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: 1525

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: 766

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: 5885

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: 5885

[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: 16552

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: 16552

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: 16552

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: 16552

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: 16552

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 ...
by i73
2017-07-06T19:04:01-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: 16552

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

Darn, I was really hoping I could get away with not passing more arguments, but It's looking like I have to pass in '-Depth 1' for my mask and 'PNG32' for my 32 bit image instead of relying on 'PNG00'.
by i73
2017-07-06T17:47: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: 16552

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

Thank you so much guys, hopefully we can figure out whats going on.

EDIT:
I'm also seeing it's converting 1 bit to 8 bit now:

Image
by i73
2017-07-06T17:11:22-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: 16552

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

"Why does it matter that your Windows tool is saying they are different? Does it affect your further processing in any way?" Yes, because I am trying to import the resized image back into a service (A bitmap service that we wrote) that will not allow me to import a 8 bit indexed image back into the...
by i73
2017-07-06T15:32:38-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: 16552

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

I don't understand what problem you are trying to solve. You have linked to two files. Exiftool says they are both palette files. So what? You have shown two screnshots. From what software? Relating to what files? They say one file is "Bit depth 32" whatever that means, the other is "Bit depth 8". ...