views:

179

answers:

0

I have a stream that has a picture. I need to write this picture to disk with a name in the format: "width x height".

The problem that I'm getting the picture dimensions with ImageMagick. but ImageMagick cannot read files from the memory, but only from the disk.

Is the only solution is to create a temp file, read it, and write another one?

Is their any better solution?

Edit: this project do support using streams, but it's older them ImageMagick.net and have another drawbacks.