post-thumbnail-editor icon indicating copy to clipboard operation
post-thumbnail-editor copied to clipboard

Overwrite original thumbnails

Open bobcooper opened this issue 10 years ago • 2 comments

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

bobcooper avatar Mar 18 '15 16:03 bobcooper

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 ) );

sewpafly avatar Mar 19 '15 02:03 sewpafly

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

TranceDrumer avatar Oct 09 '16 15:10 TranceDrumer