Bug #71164
closedImageManipulation Using in Page Resources Media Relation
0%
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
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...
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.
Updated by Frank Nägler over 8 years ago
:D Olli was faster, @Olliver: yes this is the solution ;)
Updated by Frank Nägler over 8 years ago
- Status changed from New to Needs Feedback
Updated by Janine Schendel over 8 years ago
- File imageManipulation.png imageManipulation.png added
- File imageManipulation_BE.png imageManipulation_BE.png added
- File imageManipulation_FE.png imageManipulation_FE.png added
- File imageManipulation_BEchange.png imageManipulation_BEchange.png added
- File imageManipulation_FEchange.png imageManipulation_FEchange.png added
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
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.
Updated by Alexander Opitz about 8 years ago
- Status changed from Needs Feedback to New
Updated by Josef Glatz over 6 years ago
- Related to Bug #82057: file:current:crop does not work anymore for page media resources added
Updated by Peter Kraume over 6 years ago
This problem still exists in TYPO3 7.6.23.
Updated by Susanne Moog over 6 years ago
- Category changed from Image Cropping to Image Generation / GIFBUILDER
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?
Updated by Riccardo De Contardi almost 6 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!
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