I was at Devoxx 2011 in Antwerp, Belgium and I was present in the
conference about Web Intents. I asked the question about having the
ability to specify validation in the webintents and was told to post
the idea here. So here we go. :-)
Our situation : We currently work with our own inhouse built CMS which
contains a basic image editor, it would be a great addition to be able
to give the user the option to edit his/her images in a more advanced
application using Web Intents. In our CMS we mostly specify what size
the image has to be and we validate those images when saving the page
(after editing the image). I think it would be a great addition if
this validation could be part of the Web Intent for editing images.
This is what I had in mind :
<intent
action="http://webintents.org/edit"
type="image/*"
href="edit.html"
width="640"
height="480"
/>
This way you can inform the editing application that the returned
image has to be of that size. Because not all 3rd parties will likely
implement this of have this ability, a certain value in the callback
could be added to inform if the image has been validated by the
specified parameters or not. Or when specifiying the application
supports Web Intents, have a parameter that informs the browser the
application supports image validation.
Possible other parameters to validation on : aspect-ratio, min-width,
min-height, max-width, max-height
Regards,
Kenny Debrauwer