I'm using a combination of Assets (with S3) and CE Image to store and manipulate my images respectively.

Here's an example of the tag I use:

{exp:ce_img:pair src="{url}" width="1280" height="720" crop="yes" save_type="jpg" allow_scale_larger="yes" quality="81" cache="yes" refresh="360"}{made}{/exp:ce_img:pair}

And this is an example of the URL it produces:


Is there any way to get around producing such a long and ugly URL when using these two add-ons together?


I know this issue has been addressed multiple times in the support forums (and possibly already on EE Stack Exchange), but hopefully answering here too will be helpful to others down the road:

The long URLs are the automatic naming convention that CE image uses to prevent naming conflicts, and to mitigate the possibility of overwriting images. However, you can use hide_relative_path="yes" and the cache_dir= param to have more control over your S3 URLs.

There are several other parameters in the documentation that give even more control over the cached (saved) image names and paths.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.