Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Resolution and/or Compression #14

Open
vonshavingcream opened this issue Oct 21, 2011 · 4 comments
Open

Image Resolution and/or Compression #14

vonshavingcream opened this issue Oct 21, 2011 · 4 comments

Comments

@vonshavingcream
Copy link

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

@Zahl
Copy link
Collaborator

Zahl commented Oct 26, 2011

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.

@vonshavingcream
Copy link
Author

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
Copy link
Collaborator

Zahl commented Oct 27, 2011

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.

@vonshavingcream
Copy link
Author

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

Thanks,
V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants