Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Using a CDN to serve images

09 Dec 2014, 14:45

Hello Karl, I'm using latest stable version of Imagevue. Since I'm trying a CDN service I'd like to know how to setup Imagevue to use it.

In my case and for that CDN I've to use cdn.domain.com instead of www.domain.com so I'd have to change all the image url so they are

http://cdn.domain.com/images/xy.jpg

instead of

http://www.domain.com/images/xy.jpg

Obviously I can't do that manually. Is there any way I can do that automatically?

I'll use this system also for Imagevue 3 whel will be ready...

Thanks!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Using a CDN to serve images

10 Dec 2014, 00:52

What CDN is this? I am not quite sure how this will be done, because in X2 and certainly X3, the images are processed through a PHP script to deliver the correct size. Therefore it would not work to simply change the URL unless it is static. It could probably be achieved with a htaccess rewrite, although strictly speaking, I am not sure if that would be recommended.

The most known CDN service in the world https://www.cloudflare.com/, don't require changing URL's to all images ... They will simply distribute your assets in their CDN as they are requested. You can use cloudflare with Imagevue X2 and X3 without changing anything. I imagine a few other services work in similar fashion.

We are setting up op our own powerful virtual server in NY this week (its already up), and my guess is that general performance will beat servers with CDN, but I am looking forward to do some tests.