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

check that exif is installed instead of GD to use it #38

Merged
merged 1 commit into from
Mar 16, 2016
Merged

check that exif is installed instead of GD to use it #38

merged 1 commit into from
Mar 16, 2016

Conversation

tcitworld
Copy link
Contributor

There's a call for an Exif function whereas it checks for GD.

@@ -253,7 +253,7 @@ public static function getImage($book, $imageSource) {
$width = ImageSX($imageFile);
$height = ImageSY($imageFile);
}
if (self::isGdInstalled()) {
if (self::isExifInstalled()) {
@$type = exif_imagetype($imageSource);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can also remove this ugly @ :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I leave it up to @Grandt. There may be a reason.

Grandt added a commit that referenced this pull request Mar 16, 2016
check that exif is installed instead of GD to use it
@Grandt Grandt merged commit ccb501e into Grandt:master Mar 16, 2016
@Grandt
Copy link
Owner

Grandt commented Mar 16, 2016

IIRC exif can throw some rather annoying warnings to the output, usually not a problem on HTML, but deadly for a zip file like the ePub.

@Grandt
Copy link
Owner

Grandt commented Mar 16, 2016

released 4.0.7.1 with this fix. Thanks for catching it.

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.

3 participants