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

Trim end of name, keeping ext #44

Merged
merged 1 commit into from Feb 26, 2020

Conversation

radarhere
Copy link

Suggestion for python-pillow#4424 - trims the name of a long filename, while keeping the extension.

In the test I've added,
name_limit_testname_limit_testname_limit_testname_limit_testname_limit_testname_limit_testname_limit_test.im
is trimmed to
name_limit_testname_limit_testname_limit_testname_limit_testname_limit_testname_limit_tes.im

Since the name field isn't accessible from Pillow, I saved an IM file with a long name, renamed it to something shorter just for neatness, and then use that file as the reference.

@hugovk
Copy link
Owner

hugovk commented Feb 26, 2020

Thank you!

@hugovk hugovk merged commit 853e2f2 into hugovk:fix-im-long-name Feb 26, 2020
@radarhere radarhere deleted the fix-im-long-name branch February 26, 2020 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants