TYPO3 uses crop images how can I avoid this - typo3

I use the ws_Flexslider plugin for display a slider on my TYPO3 page.
Problem is that the plugin uses croped pictures. Is it possible to use non croped pictures?
thanks in advance.

In Entry.html partial you have this line which renders your image :
<f:image src="{item.falImage.uid}" treatIdAsReference="1" title="{item.falImage.originalResource.title}" alt="{item.falImage.originalResource.alternative}" width="{settings.maxwidth}" height="{settings.maxheight}" />
You can set the settings.maxwidth and settings.maxheight in you typoscript constants to get the desired behavior.

Related

How to set the body background for typo3 without or with extension?

I am using typo3 v9.5.0. I need to design a website with a background image wrapped all over the content element and menu. There is no specified layout in bootstrap package. I've tried extensions like background by uploading the image.
But there is something wrong. By default its pointing the wrong resource which it left(typo3/01_DBM).
I have no clue why it's behaving like that. If there is any other extension or technique, kindly suggest me. But I want it to be done dynamically because it needs regular updation.
TYPO3 9.5.0 is outdated. although you use it localy update to current version.
you have multiple options to integrate a background image to the whole page.
Here my recommandation which does not require any specific extension:
As you use the bootstrap-package you can enhance the Fluid-templates of it in your own site-extension (which you should use).
Where do you get the image from?
Every pages record (defining a page in TYPO3) has fields for related media files (you can find/set it on the Resources tab.
Here an editor can easily insert an image which should be used as a background image to the content.
In your typoscript definition of variables for the page you can define an own variabel for the first image
10 = FLUIDTEMPLATE
10 {
[...]
dataProcessing {
111 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
111 {
references {
fieldName = media
table = pages
}
as = BackgroundImages
}
}
[...]
}
and use it in the fluid template for the page like:
[...]
<div style="background-image:url(fileadmin/{BackgroundImages.0.originalFile.identifier});">
<f:cObject typoscriptObjectPath="lib.dynamicContent" data="{pageUid: '{data.uid}', colPos: '0'}" />
</div>
[...]
further enhancements could use a sliding mechanism, so a page without own background-image could use the image of parent page.

Bild vergrößern mit Fancybox

I use ModX and would like to change the size of a displayed image under "fancybox". However, I can not find the CSS file in which the details are.
Code-Picture
The "element.style" can be seen in the picture. This is likely to be created. What I want to change is the "width: 494px;" To adjust the overall size of the image. Where can I find that ?
If you need to change that width - than change it in fancybox options - http://fancybox.net/api
Let me know if you need further help with that. You can and should use pthumb for the resizing and caching before passing into a slider or lightbox tool.
pthumb is the fork of phpthumbof.
https://modx.com/extras/package/pthumb

How to render images in custom extbase extension using Typo3 7.5 Image cropping?

does anybody know how to implement the image cropping for a custom extbase extension ? I know how to display the image form field for the backend part, but not the rendering in the extension template.
I know that the fluid_styled_content sysext uses the TYPO3\CMS\Frontend\DataProcessing\GalleryProcessor assigned to the textmedia content element via typoscript in the extension setup.txt, but I don't know how to implement it in a custom extension.
Can anybody help me here ?
thanks,Lukas
It's quite easy I found out. The viewhelper f:media renders the image correctly, taking into account the image settings in the image field.
<f:media
file="{image}"
width="{column.dimensions.width}"
height="{column.dimensions.height}"
alt="{column.media.alternative}"
title="{column.media.title}"
/>
Fluid template example:
<f:image
image="{image}"
alt="{image.originalResource.title}"
width="460c"
height="460c"
treatIdAsReference="TRUE"
/>
Value {image} must contain FAL image object.
Image is cropped by attributes width="460c" and height="460c".

Magento 1.9 Wysiwyg image URL problems on Product pages

I am try to set multiple Images in attribute using Wysiwyg Editor and try to get those images in product detail page but no success. and in view source I get something like this <img alt="" lighthouse.jpg"}}"="" productfeed="" wysiwyg="" src="{{media url="> so may be it will not allow me to get path in this format {{media url="lighthouse.jpg"}}. So how to get images which i have uploaded using Wysiwyg Editor on product page.
Finally I got solution,
If you are also facing same issue than use
$this->helper('cms')->getBlockTemplateProcessor()->filter($this->helper('catalog/output')->productAttribute($this->getProduct(),nl2br($_description), 'description') )
Instead of
$this->helper('catalog/output')->productAttribute($this->getProduct(),nl2br($_description),
'description')
where you want to show product description or any attribute along with it's images which you uploaded using Wysiwyg editor. for further detail go through this link

How to customize the existing image component (map/area functionality) in Adobe Cq5?

There is an image, when I hover on the specific area of a image. I want to show another image in CQ5. Right now I have achieved this using map,area,co-ordinates concept, onmouseover() function I have changed the images. I have got the following things from the dialog from the user.
1)image which needs to appear when hovered
2)co-ordinates of the area.
My question is, I want to avoid getting the co-ordinates from the user. The same map functionality is present in default image component, where should I go and customize the component, so that I can add an extra textfield in the component to just get the image path which needs to change on hover,and I want to add the mouseover functionality as well.
Can someone please help?
Thanks in advance.
When I add an image map to an image dialog, I get the following outputted in Author mode:
<div class="genericImage cq-element-par_47image" id="cq-gen25">
<img title="Triangle - Equilateral" usemap="#map_X" src="image">
<map name="map_X" id="cq-gen117">
<area shape="rect" coords="25,34,209,151" href="/path.html">
</map>
</div>
Going by /libs/foundation/components/image/image.jsp, the <map> and the <image> are all rendered out by the drawOut() method of com.day.cq.wcm.foundation.Image.
If you want to change how the map is outputted, you would need to replace this method with your own code. The details of the map itself though are saved on the image node as a regular property called imageMap, so there's it's quite possible to:
Overlay the image component
Modify your version of the JSP (apps/foundation/components/image/image.jsp) to output the map, the href and the image as you need it (using ${properties.imageMap} for the map/link and ${properties.fileReference} for the image reference)
Write some CSS/JS to overlay your image from the href on hover.