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

Allow CBZ Files to Set Image Ext to Match Webpage Image Type #12

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

pjkaufman
Copy link
Contributor

Fixes #11

Adds the ability to save files as png files if they have .png in the name. While it would be better to be able to determine the exact file extension, since we are dealing with a URL, it seems best to just go ahead and do a check for the png file extension after the string has been made lowercase.

The PDF does not care what the file extension is, but due to how the interface works, it was needed for both the PDF and CBZ addImage methods.

Copy link
Owner

@robinovitch61 robinovitch61 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for the quick turnaround :)

@robinovitch61 robinovitch61 merged commit 6e756b0 into robinovitch61:main Aug 29, 2024
1 check failed
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.

CBZ Format Assumes Images Are JPEGs, But Some Are PNGs
2 participants