magefree / magefree/mage

Error showing card images: outer zone "cutted"

Open
#4,028 4 comments 0 reactions 0 assignees View on GitHub
bug GUI
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

I found an strange behavior with card images.
In sum: images with size **ratio 1.39 shows well** (i.e. 233x311), images with **1.40 ratio shows bad** (i.e. 265x370).

Ratio 1.39 images shows at complete size, with corners (if has transparency, also). Ratio 1.40 shows "cutted", like "zoom cutted" from the original card image, that removes the outer zone from the card image.

![IMG_9905](https://github.com/magefree/mage/assets/8344157/d7516c1c-aafe-49db-a649-9da0f316ce31)

Hope these caps explain better:
Image showing bad in Xmage and his real details (note that the image really has transparent corners):
- https://i.imgur.com/Euae7NT.png
- https://i.imgur.com/O5ZK2lS.png

Now, example from one showing ok:
- https://i.imgur.com/i0HnNmT.png
- https://i.imgur.com/8MBOL79.png

Note both are equal: png, bpp, etc. Difference is the ratio.

So I tested to cut from 265x370 to 265x369 the image (so "converting it" to 1.39 ratio then) and now shows transparent corners and whole image size, not the strange cutted zoom. Must clarify, resolution is not the problem, is the resultant ratio (tested!).

The problem is that 265x370 is very common size (and 1.40 ratio then) because is the Wizards default spoiler size, so many sets downloaded with the "Images" option or another sources are showing bad!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.