Viewing 13 replies - 1 through 13 (of 13 total)
  • [email protected]

    (@erikvisionpointmarketingcom)

    I’m having this same issue. Any update on this?

    Plugin Author Nicolas Juen

    (@rahe)

    Hi !
    Just click on delete size and wait a moment.
    Then refresh the page( without saving ), is the size gone ?
    If you have added the sizes with add_image_size then they will always appear here.

    Rahe

    Nope.
    Refresh the page without saving; comes right back.
    Save Settings only, comes right back.
    Refresh without saving, then Save, comes right back.

    Show in post insertion? doesn’t seem to make any difference, either. I have two of four unselected (no blue button color) and they’re all in the Insertion drop-down.

    3 blogs, all with different themes.

    Just got this problem with one thumbnail size. If I modify it, it creates another one with the same name and the properties I choose(crop, etc).

    Later sizes created after that are deleted properly. Only this one somehow won’t go away. If you delete it, it disappears from the Image size area, but you can still see the entry for it in the thumbnail regeneration area + get php button also returns the settings.

    One more strange effect: Normally ‘size’ is appended to the name of the Image size specified, e.g. when you create a new thumbnail and you enter ‘Feature’ in the input box, it becomes ‘Feature size’
    Now the size is entered at the beginning of the name, so it becomes ‘sizeFeature’, without spacing in between as well.

    Delete the plugin directory manually, reinstall – that custom size comes back! How is this happening?

    Perhaps some settings are saved in an area not in the plugin directory or something? Or has the plugin somehow permanently added this thumbnail size? Seriously, if the author is reading, can you help with this?

    Plugin Author Nicolas Juen

    (@rahe)

    Hi,

    Try to delete the option ‘custom_image_sizes’ of your database, i will add an action to delete this options when uninstalling.

    Rahe.

    Hi Rahe, thanks for your help. I’m glad that this is a solvable issue, but unfortunately I can’t seem to find anything like ‘custom_image_sizes’ in phpadmin. I see databases created by a few plugins I use but not this.

    Am I looking in the right place? Until then, I think I’ll look forward to your update ??

    Plugin Author Nicolas Juen

    (@rahe)

    Hi !

    Go to the wp_options table and then search for the option_name “custom_image_sizes”.
    I you found one then delete him and no more sizes will be displayed in the media settings page by my plugin, all your sizes generted by the plugin will be deleted.
    But if you have used the ‘add_image_size’ function then the image sizes will stay.

    Ah yes, found it! Yes, my function.php image sizes are unaffected. Thanks!

    PS: If you can add a filename search to delete relevant thumbnails when a custom size is deleted, this plugin will be the best one here. Oh, and an image quality option for the new thumbnails. ??

    Plugin Author Nicolas Juen

    (@rahe)

    You’re welcome.
    The feature is touchy to build because the image sizes are nor inted to be deleted/edited, but maybe a solution can be found ;).
    The image quality is global to WordPress so you only can change all the images quality with php function like this https://www.wpbeginner.com/wp-tutorials/how-to-increase-or-decrease-wordpress-jpeg-image-compression/

    Well, as long as you make the image deletion clearly optional I think it’ll only be an improvement to the plugin. While I was trying to fix this yesterday I looked around in my image folder and the amount of obsolete image sizes I wasn’t using anymore was really quite high.

    Ah, that quality suggestion was brought about by my use of https://www.ads-software.com/plugins/imsanity/ , I’m aware that you already have enough work to do on the plugin as it is. ??

    Plugin Author Nicolas Juen

    (@rahe)

    There is a solution, using the add_image_size functionnality but blocking the image generation during upload with a filter. Then use WP_Thumb plugin wich is generating the image when you call them.

    In this case you will only have usefull images and when you change/delete new images sizes you only have to delete the wp-content/uploads/cache folder, the original file is still on the uploads folder but all the other images are on the cache folder.

    Hrrmn..If I’m reading that correctly that will be trading page performance for storage efficiency, correct?

    Plugin Author Nicolas Juen

    (@rahe)

    Not really because the image is generated by one user one time then the image size is cached in the “wp-content/uploads/cache” folder and WordPress never have to generate it until you delete the folder.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Can't Delete Custom Sizes’ is closed to new replies.