Page 1 of 1

BroadLeaf Aset Server Controlls

Posted: Tue Apr 01, 2014 3:57 am
by nskarthik
Hi

http://www.broadleafcommerce.com/blog/d ... r-part-one
http://www.broadleafcommerce.com/blog/d ... r-part-two

The URL above describes that the Images Uploded & local to the Web container can /would be modifiable into either
apply filters with inline URL Rewriting

URL Rewriting Filters
1) Rotate
2) Thumbnail
3) Size & Aspect Ration
4) Black /White convertion.

Question : If the Images are served via a CDN / Dedicated Central image server ( for Clustered Web Env) and need to be applied with the Filters ?

How could this be possible.


with regards
karthik

Re: BroadLeaf Aset Server Controlls

Posted: Tue Apr 01, 2014 12:03 pm
by phillipuniverse
If you are using a CDN like Cloud Front or Akamai, when you send the image request to the CDN with all of those parameters it goes and checks the Broadleaf origin server to retrieve that image. Broadleaf then takes that and does the manipulations on the image and then saves it to disk. That file is then served to the CDN which is then cached there. Repeated calls utilize the file that Broadleaf already saved to disk. You can change the directory where these are stored with the 'asset.server.file.system.path' environment property. They are, by default, stored in System.getProperty("java.io.tmpdir").

Re: BroadLeaf Aset Server Controlls

Posted: Fri Apr 04, 2014 12:17 am
by nskarthik
Hi
phillipuniverse

Thx & sorry for delayed Reply.

>>You can change the directory where these are stored with the 'asset.server.file.system.path'

I mean to clarify in here is :


1) A Central Subset system hosts the Image in the format as provided

eg: http://www.imageServer1.com/product1/abcd.jpeg


2) This Hyper Link Info is displayed as PRODUCT's on the Landing Page ( http://www.mycompany.com/ ),
The Hyperlink is stored in the DB and Image are NOT STORED locally in the BLC's DB ...


3) These Hyperlinks based images are needed to be filtered as Large / Medium / Small by applying filters as to be displayed
on the Landing Page of mycompany.

eg :
Landing Page : http://www.mycompany.com/
Image Server : http://www.imageServer1.com/product1/abcd.jpeg


Question : For an hyperlink based image , what necessary changes should be applied in order to use the Image Filters of the BLC's Asset Server ?


with regards
Karthik

Re: BroadLeaf Aset Server Controlls

Posted: Tue Apr 08, 2014 10:22 am
by phillipuniverse
The request must go through the Broadleaf system at some point in order to apply the image transformations to the image.

If you are talking about using a different backend for storing the final images, you can see our modules for Amazon S3 and Rackspace Cloudfiles. These are for Broadleaf 3.1. You could use them as inspiration for communicating with some other shared file storage system if you would like.

Re: BroadLeaf Aset Server Controlls

Posted: Mon Apr 14, 2014 8:55 pm
by nskarthik
hi

thx for the reply & sorry for the response.

Question : Could the filter be applied in multiples ?

ex: pic1.jpeg ?largeAdminThumbnail & ?rotate-rotate-amount=125


Is this possible and HOW :?: .



with regards
karthik

Re: BroadLeaf Aset Server Controlls

Posted: Tue Apr 22, 2014 11:56 am
by phillipuniverse
No, if you have a saved image transformation step you cannot add on a dynamic transformation step. You have to either transform the entire image dynamically (meaning, pass in every transformation property via the URL) or do it all via an XML configuration.