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

Added transformGifs config setting, Fixes #2845 #2862

Merged
merged 7 commits into from
May 10, 2018

Conversation

andris-sevcenko
Copy link
Contributor

Wanted to run this by someone as I'm not very happy with having to check for this in three different places. Something to be refactored later?

@brandonkelly
Copy link
Member

Think you should add a FileHelper::isGif() method, similar to isSvg(), and call that wherever you're currently checking for .gif file extensions.

Also, I think we should leave the Asset::getThumb() method alone; thumbnails should still get transformed regardless of this setting.

@andris-sevcenko andris-sevcenko merged commit c0532b7 into develop May 10, 2018
@peter-tell
Copy link

peter-tell commented May 11, 2018

The change:

if (FileHelper::isGif($this->filename) && !Craft::$app->getConfig()->getGeneral()->transformGifs) {
            return AssetsHelper::generateUrl($volume, $this);
        }

Is causing me to get:

finfo_file(MY-FILE.jpg): failed to open stream: No such file or directory

Error when running a transform through redactor


PHP version | 7.1.12
-- | --
MySQL 5.6.38
Imagick 3.4.3 (ImageMagick 6.9.6-2)
Craft Pro 3.0.7
Yii: 2.0.15.1
Twig: 2.4.8
Guzzle: 6.3.3
Imagine: 0.7-dev
Redactor | 2.0.1
-- | --

@andris-sevcenko
Copy link
Contributor Author

Related to craftcms/redactor#47

@brandonkelly brandonkelly deleted the pull/transform-gifs-setting branch February 25, 2019 13:55
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