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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -