-
Notifications
You must be signed in to change notification settings - Fork 137
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
Images with query strings are given the wrong extension #53
Comments
Nice catch @alecgibson. 👍 Yep, I say strip the query string from the image URL, and then |
Yep, just checked out on Coming right up! (1) - The |
Fixed on v0.0.19. Closing. |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
When
epub-gen
is provided animg
with asrc
with a query string, then the image's extension is incorrectly changed to.bin
.For example:
I believe the bit of the code to blame is here, where the
mime
package returns:We can try to strip the query string at our end, but sometimes query strings are used to contain options for how the image is rendered (a common example being Gravatar).
It would be best if
epub-gen
stripped the query string when trying to determine themediaType
andextension
.The text was updated successfully, but these errors were encountered: