sewpafly / post-thumbnail-editor

Wordpress Plugin to manually edit post thumbnails
http://wordpress.org/extend/plugins/post-thumbnail-editor/
32 stars 18 forks source link

Overwrite original thumbnails #111

Open bobcooper opened 9 years ago

bobcooper commented 9 years ago

Hi there, I've just installed your plugin but when I use it my original thumbnail is deleted but the filename of the new thumbnail is different and it breaks my site.

e.g. at the moment from

image-400x400.jpg goes to image-400x400-0123456.jpg

I want to keep the original name.

Is this possible?

Thanks,

Bob

sewpafly commented 9 years ago

TL;DR; Currently don't support this, as no one has asked for it, but it would be easy to fix.

I've been working on this plugin for 4+ years and no one has asked for this before. I should be able to add this to the next version as an option or a hook, but if you want to quick patch it for yourself change line #608 in php/functions.php from

@unlink( apply_filters( 'wp_delete_file', $old_file ) );

to

//@unlink( apply_filters( 'wp_delete_file', $old_file ) );
TranceDrumer commented 8 years ago

Hi, I have similar problem. When I re crop the thumbnail or any other image it just gets different name: image-400x400-0123456.jpg

but must be same as was original: image-400x400-cropped.jpg

I checked wordpress php log file and did not find anything suspicious

could it be permission issue? Can you help me?

BR Alex J