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

Can no longer automatically infer size of resized images #68

Open
ExpHP opened this issue Oct 15, 2022 · 0 comments
Open

Can no longer automatically infer size of resized images #68

ExpHP opened this issue Oct 15, 2022 · 0 comments

Comments

@ExpHP
Copy link
Owner

ExpHP commented Oct 15, 2022

You used to be able to do the following:

  • Supply both an ANM and directory image source: truanm c -i original.anm -i images/ ...
  • ...where images/ contains an image of a size that differs from the texture dimensions of its entry in original.anm...
  • ...without needing to specify img_width/img_height.

Basically, the PNG dimensions would override those in the ANM entry, and the use case was to make life easier for people who need to make a sprite bigger than would fit in the original texture by not requiring them to write the new dimensions. There used to be a test case for this here.

This functionality is no longer compatible with the new correct behavior for handling subregion extraction and compilation (see #67). You must manually specify img_width/img_height if you are resizing an image, otherwise truth will interpret the offset/size from the ANM file as reading a region of the PNG.

Perhaps img_width: "auto" could at some point be added to restore this functionality.

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

1 participant