wordpress post-thumbnail crop question. is this even possible?

こ雲淡風輕ζ 提交于 2019-12-11 08:48:57

问题


When I'm using the post thumbnail feature in wp3 and set the thumbnail size to e.g. 230x160 wp crops the image from the top left corner to the set size.

Sometimes this is sadly just the wrong part of the image.

Is there any way to give the backend user the chance to choose the part of the original image which should be the thumbnail? Like a jQuery script or something?

Right now I'm using a custom field workaround to upload a second image with the excact dimensions...

Any ideas on this?

//EDIT

i just figured out that i was wrong here. the crop function usually takes the middle part of the image (as you can see in the wp-includes/media.php file around line 336). in my case the image didn't even get cropped because (i still need to verify that) my server hasn't the GD library installed.


回答1:


I am creating a plugin to solve exactly this problem. It's almost done, you can follow the progress on my related question on the WordPress Stack Exchange site.




回答2:


I think the WP Post Thumbnail plugin is what you want.




回答3:


Please have a look at this plugin, seems to do exactly what you need: http://wordpress.org/plugins/manual-image-crop/



来源:https://stackoverflow.com/questions/4126285/wordpress-post-thumbnail-crop-question-is-this-even-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!