Resize of images does not seem to trigger

Search
Other Bug Reports questions
Forum

Resize of images does not seem to trigger

Marc's Avatar Marc
Hi Peter,

Nothing urgent, this can wait a couple of weeks since you are enjoying your holidays!

I have noticed that using the option
width="300"
for intro/full images does not work.

Or to be more precise:
- it indeed adds
width="300"
in the HTML
- but it does *not* resize the image.

My original code was:
{articles category="Séances" order="date-et-heure"}
{article id="[film-de-la-seance:text]"}[link][image-intro width="300"][/link]{/article}
[date-et-heure]
[film-de-la-seance]
[operateur-de-la-seance]
{/articles}

But even if I simplify it to the following, the issue arises:
{article id="2"}[image-intro width="300"]{/article}

So as if the resize was not triggering.
Note that the corresponding option in Articles Anywhere is set to "Standard" (and everything seems OK over there).

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Can you do some pre-testing?

Does it resize when setting the option is set to "Yes"?
Does it resize when you add resize="true" to the tag?
Please post a rating at the Joomla! Extensions Directory
Marc's Avatar Marc
I did not mention, but I tried those two things too before contacting you.
But relax, this can really wait a few weeks.
Marc's Avatar Marc
(besides my previous answer, just one thing to mention even if I don't think it can interfere: the website uses YOOtheme)
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, you tried them... but what's the answer? 😁
So do the images resize with the other 2 cases? And only don't resize when set to "Standard" (with no resize attribute)?
Please post a rating at the Joomla! Extensions Directory
Marc's Avatar Marc
Sorry, I had not meant to be ambiguous 🙂
I meant "it never gets resized whatever I do 🙁 ).

I made further test (now with Cassiopeia just to be sure) :
Confidential information:
(hidden)


With the following code
{article id="2"}[image-intro resize="true"]{/article}
- the image is not resized (ie we still have the original intrinsic size) but has its width attribute when I set the plugin to "Standard" (currently visible on the site).
- ... and exactly the same when I set the plugin to "Yes"
Peter van Westen's Avatar Peter van Westen ADMIN
The resizing works fine for me.

There are a couple of reasons why resizing could fail and it then just uses the original image:
- the resize folder cannot be created (could be down to folder permission issues)
- the image is for some reason not seen as an internal image
- there are issues with being able to read the image info (width and height)

Looking at your image URL, there is something weird there, that could mess up the ability to read the image:
/images/films/SalePute.jpg#joomlaImage://local-images/films/SalePute.jpg
So that hash stuff is probably the reason it is not working.
Please post a rating at the Joomla! Extensions Directory
Marc's Avatar Marc
hehe, yes but that hash comes automatically in J4 when you select an Intro Image or a Full Image 🙂
(if you migrated a J3 site, as long as you don't change the images, the url is still the "good old one without the hash)
You can only post on this forum if you log in