你可以这样做:
When your jQuery plugin sets image attributes you could also add hidden input fields to the form with those attributes values. This is possible if the plugin api has events available. Otherwise you would need to extend it by your own. After subbmiting form, server would receive hidden input fields values along with other. So in PHP this would be accesible from the $_GET
or $_POST
global array (depending on form method).
Another way:
You could also capture the moment when user clicks submit button on the form. Then - stop default behavior. Next send an Ajax call to the server, passing current image attributes values. Server can store those values in the database, or do whatever you want and return a response. After response you can trigger the form submission programmatically.