This is a type of service, which will be connected with one of your sites.
Resources can be: Picture Hosting, Fast Load, Reverse Fast Load
When you create Resource, you choose type of service, which you will use.
To be precise, it is a part of URL without the scheme, but sufficient for building full URL.
Example:
| Return URL: | i.picfield.com/1/Ypp5LVQ6gnPy.jpg |
| Ready attribute: | http://i.picfield.com/1/Ypp5LVQ6gnPy.jpg |
| Image tag: | <img src="http://i.picfield.com/1/Ypp5LVQ6gnPy.jpg"> |
The address of your script. We will make POST request to your script for notify of uploaded images (optional)
One Action means one image manipulation. You can create 1-3 (and more) actions.
Example. You can create the following actions:
| Name | width | height | force scale | send to client |
|---|---|---|---|---|
| Thumbnail | 100 | 100 | Yes | Yes |
| Medium | 450 | 450 | No | No |
| Original | 2000 | 2000 | No | No |
When user uploads image, he/she gets only url of thumbnail, and your script gets all of them.
As a result, you will have 3 different image url addresses. One for "Thumbnail", one for "Medium," and the last for "Original".
However, you need to know that "Original" is not really an original file. It is resaved with jpeg format with size not more than 2000x2000.
If original file's dimensions are more than 2000x2000, it will be resized to the 2000x2000 (as maximum option) with proportions saved.
Introduce scaling, even if the original image is less than the resolution of Action
Send data about this action to Client Side
Your site's server (script of your site, located at your server). We will make POST request to Notify URL script. This script is the Server Side.
Browser of your visitor. Client of you site.
It is possible only with some additional conditions. You must realize the impossibility of simple cross-domain requests.
| Your domain: | domain.com |
| Our domain: | picfield.com |
You can make it possible by modification in your server software:
1. Web server: do proxy request for picfield.com.
2. Use proxy scripts at your server.
3. Use your scripts for POST requests.