How to allow user to crop the image, but not make him to do that? Mostly they don’t need to crop, just use original pic, so we don’t open cropper automatically.
For example when crop is not defined template is like this:
<img src="[[+url]]" width="[[+width]]">
But when user defines crop (named Free), template should be:
<img src="[[+crops.Free.url]]" width="[[+crops.Free.targetWidth]]">
If crop is not defined we need to resize using phpthumbof, when crop is defined we can use it directly.
I tried:
<img src="[[+crops.Free.url:default=`[[+url]]`]]" width="[[+crops.Free.targetWidth:default=`[[+width]]`]]">
While crops.Free placeholders are empty, they go into resource content field and break further processing, like phpthumbof.
Is there a way in template to tell if crop is defined and use different code?
Or at least can undefined crop receive default values (url, width,height) from image itself (though not really solving all issues)

