Search

I’m attempting to resize and cache some images from Flickr on my site. I’ve installed and enabled JIT 1.06, and added “farm[1-3].static.flickr.com*” to my Trusted Sites list.

After a lot of trial and error with the settings, I’m still not having any success getting it to return an image. Mostly it seems to return a blank page. The closest I’ve come is linking directly to the extension:

http://brianandjaclyn.net/extensions/jit_image_manipulation/lib/image.php?param=1/300/200/1/farm3.static.flickr.com/2461/4088196322_a986fae805_b.jpg

…which returns a blank page and the following error in Symphony’s main log:

2009/12/12 18:43:31 > ERROR: 256 - Unsupported image type. Supported types: GIF, JPEG and PNG in file /users/home/lunaport/domains/brianandjaclyn.net/web/public/extensions/jit_image_manipulation/lib/image.php on line 196
2009/12/12 18:43:31 > NOTICE: Image class param dump - mode: 1, width: 300, height: 200, position: 0, background: 0, file: farm3.static.flickr.com/2461/4088196322_a986fae805_b.jpg, external: 1, raw input: 1/300/200/1/farm3.static.flickr.com/2461/4088196322_a986fae805_b.jpg

…except that the image is definitely a JPEG:

http://farm3.static.flickr.com/2461/4088196322_a986fae805_b.jpg

Am I doing something wrong? Any suggestions?

Not sure what you could be doing wrong, all seems in order. I wonder if the response from Flickr is returning something nasty.

In extensions/jit_image_manipulation/lib/image.php you will see a try/catch block from which the error is originating. This try block builds the method name that processes the image. Could you go to extensions/jit_image_manipulation/lib/class.image.php, locate the loadExternal() function and add the following directly inside it:

header('Content Type: text/html');
echo $uri;
die;

Then try viewing your image. This should dump out the exact URL that it is attempting to grab and load. My hunch is that the ‘http://’ isn’t being correctly appended to the URL it is grabbing.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details