spoutn1k/mcmap

Image Resolution and/or Compression

vonshavingcream opened this issue · 4 comments

is there a way to deal with the image resolution when rendering the map?

Zahl commented

What exactly do you mean? If you refer to the size each block takes up in pixels then no, this is fixed, so the same map will always produce an image of the same size. If you want to limit the area that is rendered and this the size of the resulting image, you can use the -from and -to command line options. You'll get more help on this if you run mcmap without any command line parameters.

thanks for replying. first off .. awesome piece of software. I am totally enjoying it. now on to the question... what i mean is, is there a way to control the quality of the render? right now mcmap outputs a 72 dpi image. is there a way to output a image file with a higher dpi?

Zahl commented

Glad to hear you like it :)

Well, internally, I'm doing everything on a per pixel basis and then just shove the pixel data into libpng and let it create a png file from it. I am pretty sure there must be an option to set the dpi the final image will have, but I must admit I know to little about image processing to know if this will have any meaningful impact on the output. There definitely won't be more detail out of nowhere, and no idea what will happen if you lower it. It's probably just meta data and doesn't change anything about the image data, but rather tells other software how to display the image properly.

Zahl, I sent you a message through github. just wanted to make sure you got it.

Thanks,
V