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

Fix input filenames with dot . parsed incorrectly #70

Merged

Conversation

pkong-ds
Copy link
Collaborator

@pkong-ds pkong-ds commented Jul 8, 2024

ref #69

Problem

Previously, filename parsing method is implemented with custom code like split('.') instead of os.path.splitext()

Solution

Use os.path.splitext instead

Test run

Input

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-15 at 20.53.15 Simulator Screenshot - iPhone 15 Pro Max - 2024-06-15 at 20.53.29
Simulator Screenshot - iPhone 15 Pro Max - 2024-06-15 at 20 53 15 Simulator Screenshot - iPhone 15 Pro Max - 2024-06-15 at 20 53 29

Output

apple-iphone-15-black-mockup(2).zip

@pkong-ds pkong-ds self-assigned this Jul 8, 2024
@pkong-ds pkong-ds force-pushed the mup-114-mockuping-multiple-images-at-once branch from 363c297 to a778b2a Compare July 8, 2024 15:06
@pkong-ds pkong-ds force-pushed the mup-114-mockuping-multiple-images-at-once branch from a778b2a to e3cde34 Compare July 8, 2024 15:14
@pkong-ds pkong-ds merged commit a7063bc into oursky:main Jul 8, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant