You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#104935 File Manager responsive images

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by mikehermary on Friday, 31 July 2020 00:20 BST

mikehermary
Hello,

I have two questions regarding the Joomla content editor image tab and the file browser.

First: Is there any way to add multiple image sizes using the srcset functionality in the file manager? This functionality works on the Image Manager Extended responsive tab, but not on the file manager as far as I know.

Second: Is there a way to get the image's width and height attributes from the file browser and display them in the HTML for intro and full text images?

Cheers,

Ryan
I have two questions regarding the Joomla content editor image tab and the file browser.

First: Is there any way to add multiple image sizes using the srcset functionality in the file manager? This functionality works on the Image Manager Extended responsive tab, but not on the file manager as far as I know.


The Images & Links tab is part of the Joomla Article Manager, and those image fields are extended slightly to provide access to the JCE File Browser to select images. Setting the srcset attribute for responsive images requires extra input, to specify the width descriptor or device pixel ratio, which is not available in the JCE File Browser, and cannot be added as additional options in the media field itself.

Second: Is there a way to get the image's width and height attributes from the file browser and display them in the HTML for intro and full text images?


Please note that the rendering othe Intro Image and Full Image fields is not done by JCE but by the Joomla Article Manager via the Joomla Media Field. This field does not accept additional attributes for the image tag, so the width, height and srcset attributes could not be set, even if the data was supplied.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

mikehermary
Hello Ryan,

Thanks for the explanations.

Can you say if Joomla 4 will be providing this functionality in it's media manager or provide your File Manager the ability to handle this?

Cheers,