JohnnyJayJay / spigot-maps

A library to simplify the use of customised maps in Spigot.
GNU Lesser General Public License v3.0
48 stars 4 forks source link

Add ImageTools utilities for other ratios than 1:1 #8

Open JohnnyJayJay opened 4 years ago

JohnnyJayJay commented 4 years ago

Is your feature request related to a problem? Please describe. There are currently no utilities to divide an image that has a different resolution ratio than 1:1, although such images are quite common.

Describe the solution you'd like ImageTools could take the width and height of the given image into account and calculate a fitting number and distribution of maps. This would also introduce new issues: arbitrary ratios could lead to situations where hundreds (or even more) maps are required to match the input. There would need to be some safety net and some sort of sensible mechanism that makes slight adjustments to the original automatically.

Describe alternatives you've considered This isn't necessarily something that needs to be baked into this library. If there are any existing libraries that provide such functionality, it need not be implemented here.

Additional context /

JeffHD commented 3 years ago

Hey, any news about other ratios than 1:1? It would be really useful for me :)

JohnnyJayJay commented 3 years ago

Hey, any news about other ratios than 1:1? It would be really useful for me :)

Not yet. But I might take another shot at it when I have some more time.