7 users online. Create an account or sign in to join them.Users

Search

Hi all,

I’m currently trying to call in external images and manipulating them with JIT. Because they’re external I don’t have any control over their naming conventions and unfortunately a few of them seem to be breaking JIT.

An example image is:

http://1.bp.blogspot.com/_nJVefyrdnbQ/S_PpxySYRdI/AAAAAAAAATE/vUsylk5KUN4/s640/Snapshot+2010-05-19+14-32-12.jpg

When I link to

http://www.mysite.com/image/2/210/138/5/1/1.bp.blogspot.com/_nJVefyrdnbQ/S_PpxySYRdI/AAAAAAAAATE/vUsylk5KUN4/s640/Snapshot+2010-05-19+14-32-12.jpg

The ‘+’ symbol in the image filename seems to be breaking JIT.

I found a post on the forum here which mentions using JIT’s messy url which when I url encode the ‘+’ symbol seems to get a result:

http://www.mysite.com/extensions/jit_image_manipulation/lib/image.php?param=1/1.bp.blogspot.com/_nJVefyrdnbQ/S_PpxySYRdI/AAAAAAAAATE/vUsylk5KUN4/s640/Snapshot%2B2010-05-19%2B14-32-12.jpg

This works, but I’m no longer sure how to pass my JIT parameters through defining the crop values. Any ideas anyone?

Many thanks!

Ben

Ah seems that url escaping the ‘+’ symbol works with normal clean URLs too - not sure why I didn’t try that in the first place!

Escaping Symphony keyword symbols is a good workaround. During our recent Working Group meeting, this has been raised to ensure this is in Symphony’s documentation going forward to increase awareness of this method.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details