Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mischka committed Jul 22, 2015
1 parent b5f8298 commit 9ab0243
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Classes/ViewHelpers/Resource/AbstractImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ public function preprocessImages($files, $ {
}
$imageInfo[3] = GeneralUtility::png_to_gif_by_imagemagick($imageInfo[3]);
$GLOBALS['TSFE']->imagesOnPage[] = $imageInfo[3];
$imageSource = $GLOBALS['TSFE']->absRefPrefix . GeneralUtility::rawUrlEncodeFP($imageInfo[3]);

if(GeneralUtility::isValidUrl($imageInfo[3])) {
$imageSource = $imageInfo[3];
} else {
$imageSource = $GLOBALS['TSFE']->absRefPrefix . GeneralUtility::rawUrlEncodeFP($imageInfo[3]);
}

if (TRUE === $onlyProperties) {
$file = ResourceUtility::getFileArray($file);
Expand Down

0 comments on commit 9ab0243

Please sign in to comment.