Skip to content

Hotfix file #58 add SVG support#1201

Closed
zonky2 wants to merge 1 commit intoMetaModels:masterfrom
zonky2:Hotfix_file_#58_add_SVG_support
Closed

Hotfix file #58 add SVG support#1201
zonky2 wants to merge 1 commit intoMetaModels:masterfrom
zonky2:Hotfix_file_#58_add_SVG_support

Conversation

@zonky2
Copy link
Copy Markdown
Contributor

@zonky2 zonky2 commented Oct 1, 2017

Hotfix file #58 add SVG support

@zonky2 zonky2 added the bug A bug! A bug! Fast, squish it! label Oct 2, 2017
@zonky2 zonky2 added this to the 2.0.0 milestone Oct 2, 2017
Comment thread src/MetaModels/Helper/ToolboxFile.php Outdated
if ($information['isSvgImage'] = $file->isSvgImage) {
$information['src'] = $fileName;
if (file_exists(TL_ROOT . '/' . $information['src'])) {
$size = getimagesize(TL_ROOT . '/' . $information['src']);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why are you fetching the size here and discard the value?
Does this really work with SVG?
If so, we should use the size value returned herin or (if specified) override it with the resize information.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

that´s right - I confused size with sizetext at template... I´ll kill this rows

@zonky2 zonky2 force-pushed the Hotfix_file_#58_add_SVG_support branch from dc31c06 to aa8563b Compare October 4, 2017 16:29
@zonky2
Copy link
Copy Markdown
Contributor Author

zonky2 commented Oct 13, 2017

@discordier it´s now o.k.?

@stefanheimes
Copy link
Copy Markdown
Member

Merged with 26de141

@zonky2 zonky2 deleted the Hotfix_file_#58_add_SVG_support branch January 10, 2019 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A bug! A bug! Fast, squish it!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants