vollyimnetz / crop-thumbnails

"Crop Thumbnails" made it easy to get exacly that specific image-detail you want to show. Crop your images the simple way.
GNU General Public License v3.0
47 stars 21 forks source link

Add support WP CLI "wp media regenerate" command so that crop data is not lost #53

Closed Jaska closed 1 year ago

Jaska commented 3 years ago

This would be such a great feature. wp media regenerate is a core command so that it would be logical to support it. It would allow to freely regenerate thumbnails without worrying about losing crop placement data.

I know this is similar to https://github.com/vollyimnetz/crop-thumbnails/issues/39 but I would like to hear if this is something that would be possible?

Thanks for a great plugin!

vollyimnetz commented 3 years ago

@Jaska sorry for the late response. Honestly i have no clue how the wp-cli is recreating the thumbnails. I assume it uses the build in functions of wordpress. So it might be possible to preserve custom image meta-data. On the other hand there is the question why the wp-cli do not preserve the meta-data in the first place.

I currently not planing to implement such a feature, cause i haven't a client that may be needed that. Feel free to share some code or documentation if you find a solution or hint about the topic.