This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » General » Image aliases only get generated when...
expandshrink

Image aliases only get generated when reuploading image

Image aliases only get generated when reuploading image

Thursday 25 July 2013 12:16:13 pm - 8 replies

Hi,

I added image aliases, but the files doesn't generate when I load a page. I need to reupload the image to get the file generated.

For example, when I take a closer look at the image in the page, I see that the file doesn't exist :

http://mywebsite/var/myextension/storage/images/mediatheque/slides/slide/492-4-fre-FR/myimage_article_wide.jpg

but ! If I manually change the URL I see that this one exists :

http://mywebsite/var/myextension/storage/images/mediatheque/slides/slide/492-4-fre-FR/myimage.jpg (the original image)

Here is an example of what I appended to image.ini :

[article_wide]
Reference=
Filters[]
Filters[]=geometry/scalewidthdownonly=700
Filters[]=geometry/crop=700;150;0;0

You can notice that Reference is empty.

eZ Publish should be able to create automatically myimage_article_wide.jpg from myimage.jpg... no ? It's the reference file, isn't it ?
What am I doing wrong ?

Thanks !!

Modified on Thursday 25 July 2013 12:16:44 pm by Vincent Robic

Thursday 25 July 2013 4:56:32 pm

Hello,

You could use http://projects.ez.no/bcimagealias

Which can generate the image aliases you need.

I hope this helps ...

Cheers,
Heath 

Friday 26 July 2013 8:58:16 am

Ok, I'll try this.
But, from your experience, is it normal that eZ Publish doesn't do it on the fly ?

Monday 29 July 2013 4:53:22 pm

Yes

Cheers,
Heath 

Wednesday 31 July 2013 9:50:59 am

The reply has been removed because of violation of forum rules.

Wednesday 31 July 2013 11:03:43 pm

Hello Vincent,

Generally speaking (don't hold me to this strictly speaking) In my experience image aliases are only generated when they are used properly / normally in eZ Publish Templates. If you do the research we have done; you will find this is the way the image alias system works. There are some obscure exceptions but they are not worth going into (nor do I remember them offhand).

This is why it's a good idea to use the system as expected by using image aliases in templates so the image alias image files will be generated properly for use or use a solution to do this for you externally like bcimagealias.

I hope this helps.. Feel free to ask any more questions on the issue you might have here in the forum.

Cheers,
//kracker

THEME: Gorillaz : Pirate Jet ...
Mirror: http://www.youtube.com/watch?v=zW9G1Jw1ZrU 

Thursday 01 August 2013 1:53:08 am

Thanks for speaking up //kracker you said what was on my mind unspoken.

As a side note I've noticed some more complicated situations arise when image aliases need to be generated before they are used in templates hense promotion of the bcimagealias solution.

Cheers,
Heath 

Thursday 01 August 2013 9:11:52 am

Quote from // kracker :

In my experience image aliases are only generated when they are used properly / normally in eZ Publish Templates.

Do you mean using attribute_view_gui ? I don't often use it, that's how I do :

 <img src="{$valid_node.data_map.picture.content.slide_large.url|ezurl('no')}" alt="" />

Could it be the problem ?

Thursday 01 August 2013 6:09:15 pm

Yes though I think using the image alias at all in template triggers it's generation as needed.

Forgive me it's been a while since I dug in that deep. You may still need the gui call and I could be wrong here.

//kracker

THEME: Gorillaz-O Green World .. 

Mirror: http://www.youtube.com/watch?v=pFHjUUYDmJs&list=RD02vwOxH0AbgXY

Modified on Thursday 01 August 2013 6:12:59 pm by // kracker

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from