Holder.js aims to serve images for demonstrations - it’s not a script and/or plug-in for you to crop your image based on demands.
To fulfill your wish, crop an image based on a URL parameter, you will actually use server-side technology. An example is Gem Paperclip Rails - it does this for you with a lot of practicality.
If you want something more specific and detailed, you will have to create a new topic specific to this subject, because at the moment you want to know about how to perform this operation via Javascript.
Well, with Javascript the procedure is a little more... painful. The Backbone is a front-end platform that will streamline your service, but knowledge about Javascript as a whole will be super necessary.
Why is Backbone.js?
It has a mechanism of routes that can diagnose a request from your client and then do something based on that.
In simplified words, its routing provides the ability to observe the URL. If it is something like this: Imagens/BD/bancoDeDados.png/200x200
, it can determine what should be done - this when the request is asynchronous -, which in this case is the (re)cut/(re)dimensioning of a rendered image based on a URL provided by your database - which will still require a request of type GET
, still asynchronous, for the server.
For this other task - the clipping -, however, you will need a plug-in or learn how to make a device from scratch.
My recommendation is that you operate this with server technology.
Maybe so, maybe not, but a quick search I found this here. Won’t help?
– Bruno Augusto