c# - Set image resolution -
i have array of image bytes , set resolution. original image can jpeg, png, bmp. output - png. using imagemagic convert image , manipulations.
using (var image = this.convert(originalimage, height, width)) using (var stream = new memorystream()) { image.quality = 90; image.write(stream, magickformat.png); return stream.getbuffer(); }
i tryed modify image.getexifprofile
, has no success (at least png images).
i can't use comandline tool (like imagemagic or exiftool) here.
there 3 exiff tags need modify
- xresolution
- yresolution
- resolutionunit
i can achieve bitmap, resource overhead (need create memorystream ...).
i have found pdf specification, consume time make work.
does can point me right direction?
thanks.
Comments
Post a Comment