Developer
Supported
CE Image
ExpressionEngine 1.x, ExpressionEngine 2, ExpressionEngine 3
Back to this add-on's main page
View Other Add-ons From Causing Effect
Encode characters in filenames beyond just spaces?
Support Request
Paul Larson
|
Posted: 30 October 2018 01:57 PM |
|
|
|
My client site is loaded with files with parenthesis. A filename such as: Hexagon_600_by_510_(50).jpg
isn’t being rendered/processed by ce_img. Any options for this?
I’ve tried to edit the plugin code for url_encode_lite without any luck:
protected function url_encode_lite( $url ) { #return str_replace( ' ', ' ', $url );
$search = array(' ' , '(' , ')' ); $replace = array(' ' , '(' , ')' ); return str_replace( $search, $replace, $url );
}
|
|
|
tunnel7
|
Posted: 09 January 2019 02:09 PM |
# 1
|
|
|
Hi Paul, I’m not sure if you’ve gotten around this issue, but what fixed this for me was adding “:url_decode” parameter to the image variable. Shouts to Robin @ EE for sorting this for me.
ex:
{exp:ce_img:pair src=”{ti-image:url_decode}” width=“116” height=“76” crop=“yes”}
|
|
|
Real Deals
|
Posted: 03 March 2020 06:19 AM |
# 2
|
|
|
This works perfectly, thanks for posting the solution.
|
|
|