Note that there are some explanatory texts on larger screens.

plurals
  1. PODrupal 7:replace original image with ImageStyles generated image
    text
    copied!<p>I'm using regular imagefields on various content types in a Drupal 7 social website (and also on the user profile pictures via <a href="http://drupal.org/project/imagecache_profiles" rel="nofollow">http://drupal.org/project/imagecache_profiles</a>). For cropping I'm using <a href="http://drupal.org/project/imagecrop" rel="nofollow">http://drupal.org/project/imagecrop</a> as an image style effect.</p> <p>I would like to replace the original image with the one generated from the imagecrop style. How do you replace the original image from a user (the one that gets used for subsequent image styles when you say call it in views) with one that is created from an image style effect?</p> <p>I'm not sure the best way to approach this problem, which is why I posted question. </p> <p>To make sure I'm being clear - </p> <ol> <li>A User uploads a large image (say 2,000 pixels by 1300 pixels) via a regular imagefield.</li> <li>Using image styles, I perform some effects (specifically javascript crop, but this could be generic) and then replace the original image with the one generated from the image style.</li> <li>All additional image styles (different sizes etc) use the new original images and are derived from it.</li> </ol> <p>I think this can be done easily using a custom module and they must have used something like the image editor project - See drupal.org/project/imageeditor, just not sure what hooks to use or how to jump in on this. Any advice, tips or direction would be great.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload