Project

General

Profile

Actions

Bug #71164

closed

ImageManipulation Using in Page Resources Media Relation

Added by Janine Schendel over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2015-10-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hey Team,

while using Image Manipulation in Pages -> Resources as Media Relation, nothing changes to images in frontend.

In our case, we would like to have a fixed size of image, but the extract should be positioned by image manipluation.

TS looks like:

lib.headerimage = FILES
lib.headerimage {
    references {
        table = pages
        uid.data = tsfe:id
        #uid.data = leveluid: -1, slide
        fieldName = media
    }
    renderObj = COA
    renderObj.10 = IMAGE
    renderObj.10 {
        file.import.data = file:current:publicUrl
        file.width = 1920c
        file.height = 757c
        altText.data = file:current:title
        wrap = <div class="taller-img">|</div>
    }
}

Do we miss something in TS to get image manipulation working?


Files

imageManipulation.png (16.4 KB) imageManipulation.png TS Setup with file:current:crop Janine Schendel, 2015-10-30 16:12
imageManipulation_BE.png (21.7 KB) imageManipulation_BE.png Change Position in BE Page Janine Schendel, 2015-10-30 16:12
imageManipulation_FE.png (806 KB) imageManipulation_FE.png Look @ FE Image Janine Schendel, 2015-10-30 16:12
imageManipulation_BEchange.png (28.7 KB) imageManipulation_BEchange.png Change Position in BE again Janine Schendel, 2015-10-30 16:12
imageManipulation_FEchange.png (803 KB) imageManipulation_FEchange.png Look @ FE after second change Janine Schendel, 2015-10-30 16:12

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #82057: file:current:crop does not work anymore for page media resourcesClosedWolfgang Klinger2017-08-08

Actions
Actions #1

Updated by Oliver Hader over 8 years ago

Hi Janine,

without having it tested, adding a file.crop.data = file:current:crop to your renderObj.10 section should do the trick. Just let me know whether that works out on your side...

Actions #2

Updated by Frank Nägler over 8 years ago

Hi Janine,
yes, you miss the cropping settings.

Please see the rst file for this feature: https://docs.typo3.org/typo3cms/extensions/core/latest/Changelog/7.2/Feature-65584-AddImageCropping.html

All you need is this line in your setup: file.crop.data = file:current:crop

Complete example with the additional line:

lib.headerimage = FILES
lib.headerimage {
    references {
        table = pages
        uid.data = tsfe:id
        #uid.data = leveluid: -1, slide
        fieldName = media
    }
    renderObj = COA
    renderObj.10 = IMAGE
    renderObj.10 {
        file.crop.data = file:current:crop
        file.import.data = file:current:publicUrl
        file.width = 1920c
        file.height = 757c
        altText.data = file:current:title
        wrap = <div class="taller-img">|</div>
    }
}

If this helps, please give us a short feedback, that we can close this issue.

Actions #3

Updated by Frank Nägler over 8 years ago

:D Olli was faster, @Olliver: yes this is the solution ;)

Actions #4

Updated by Frank Nägler over 8 years ago

  • Status changed from New to Needs Feedback

Updated by Janine Schendel over 8 years ago

hey, added the line, but still not working.

Nothing happens to FE Image after changing the positions.
Currenty working with 7.4 t3sbootstrap 2.1.1

see attachments.

regards and nice weekend
Janine

Actions #6

Updated by Janine Schendel over 8 years ago

Hey, only diffence i can see betwenn you snippet and my screenshot is

renderObj.10 = IMAGE --> your code

and

renderObj.10 = IMG_RESOURCE --> my code

changed my code to IMAGE, but crop does not work!

tested your snippet, cropping does not work for me.

Actions #7

Updated by Alexander Opitz about 8 years ago

  • Status changed from Needs Feedback to New
Actions #8

Updated by Josef Glatz over 6 years ago

  • Related to Bug #82057: file:current:crop does not work anymore for page media resources added
Actions #9

Updated by Peter Kraume over 6 years ago

This problem still exists in TYPO3 7.6.23.

Actions #10

Updated by Susanne Moog over 6 years ago

  • Category changed from Image Cropping to Image Generation / GIFBUILDER
Actions #11

Updated by Benni Mack over 6 years ago

lib.headerimage = FILES
lib.headerimage {
    references {
        table = pages
        uid.data = tsfe:id
        #uid.data = leveluid: -1, slide
        fieldName = media
    }
    renderObj = IMAGE
    renderObj {
        file.crop.data = file:current:crop
        file.import.data = file:current:uid
        file.import.treatIdAsReference = 1
        file.width = 1920c
        file.height = 757c
        altText.data = file:current:title
        wrap = <div class="taller-img">|</div>
    }
}

Shouldn't "treatIdAsReference = 1" be added as in the example as above?

Actions #12

Updated by Riccardo De Contardi over 5 years ago

  • Status changed from New to Needs Feedback

Hi, sorry for this late answer; did the suggestion by Frank and Benni solved your issue? If not, could you provide an example? Thank you!

Actions #13

Updated by Riccardo De Contardi over 5 years ago

  • Status changed from Needs Feedback to Closed

No feedback since the last 90 days => closing this issue.

If you think that this is the wrong decision or the suggestions did not help you or experience the issue again, please reopen it or open a new issue with a reference to this one.

Thank you and best regards

Actions

Also available in: Atom PDF