external image manipulation with JIT
This is an open discussion with 12 replies, filed under General.
Search
I reckon it would be that single e
character in the url. If this is a colour reference, can you try a 3 character of 6 character reference.
Still not working. The 'e' character indicates that JIT is dealing with an external link according to this tutorial.
I've tried without it as well. Still no luck.
If http://awesome.good.is/transparency/013/images/seekingrefugerev.jpg is the url of the external image i think this should work:
{$root}/image/2/100/100/5/e/awesome.good.is/transparency/013/images/seekingrefugerev.jpg
I think you should leave out; http://
And i think you should ad a slash to the trusted sites url: http://awesome.good.is/*
What happens when you place that URL directly in the browser? Can you check your Network panel in Chrome to see what the request/response headers are etc etc?
Ah, completely missed that, good spot.
Yeah, JIT will not work if you add the url parameters to an external domain... ;)
Thank you guys. You are right. I've made the changes and now my url is
http://localhost/goeassy-course/image/2/100/100/5/1/awesome.goodmagazine.com/transparency/web/0906/trans0609largestbankruptcies.jpg
In theory this should work but I still get a broken image link.
There's a 301 in place, you should use the correct image link or it won't work.
Seems like the link
awesome.goodmagazine.com/transparency/web/0906/trans0609largestbankruptcies.jpg
redirects to
awesome.good.is/transparency/web/0906/trans0609largestbankruptcies.jpg
So this should work:
http://localhost/goeassy-course/image/2/100/100/5/1/awesome.good.is/transparency/web/0906/trans0609largestbankruptcies.jpg
And add these to your trusted sites:
http://awesome.goodmagazine.com/*
http://awesome.good.is/*
Great. Thank you so much Cremol. It does work.
You're welcome!
SOLVED
Hi All
I have moved a site between servers and JIT is now failing to load external images. It still works for internal images:
http://www.purpleinvestments.com/image/2/154/104/5/uploads/page_images/florida-4e69f5ddd42b3.jpg
But I get a blank screen for external images:
http://www.purpleinvestments.com/image/2/296/194/5/1/s3.amazonaws.com/propertybase-clients/00DD0000000DIHvMAO/5342e3a14b1e3/mir1.jpeg
I have the following in my JIT trusted sites:
s3.amazonaws.com/*
I have also tried http://s3.amazonaws.com/*
but it was working on the old server without the http://
Can anyone suggest any reason why the external links aren't getting crunched? Thanks :-)
Edit SOLVED
I installed php-curl and it sorted it.
sudo apt-get install php5-curl sudo service apache2 restart
Create an account or sign in to comment.
Hi,
I'm trying to crop and resize an external image with JIT. This is the original image link
http://awesome.good.is/transparency/013/images/seekingrefugerev.jpg
This is the link I've inserted in my code but it doesn't work. I get a broken image.
http://awesome.good.is/image/2/100/100/5/e/transparency/013/images/seekingrefugerev.jpg
I've added the domain http://awesome.good.is* to the trusted sites list. I use Symphony 2.3
Is my link correct?
Thank you.