• Resolved sasasasaaa

    (@sasasasaaa)


    Hello,
    I have tested your plugin and deinstalled it.

    But till today in the header of my page in Firefox the cookie appears: wp-settings-1=libraryContent%3Dbrowse%26editor%3Dhtml%26imgsize%3D%26warpimagicksections%3D11111111%26warpimagicktabindex%3D2; wp-settings-time-1=1613258349

    How is this possible and how can I delete it?

    Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • @sasasasaaa

    Thank you for reporting,

    wp-settings-1 and wp-settings-time-1 are coupled pair of WordPress (settings) cookies. They will be gone/cleared as soon you logout from WordPress. Those cookies are not available to public.

    You can delete WordPress settings cookies in the browser, but WordPress will restore those cookies as soon as you login again, and as long as you are logged in. Cookie is always there when you login, regardless of Warp-iMagick plugin is installed or not.

    Warp-iMagick uses that cookie to anonymously store settings page last UI state: current (open/selected) settings-tab & state of input sections (collapsed/expanded). UI state is set only to logged in users that are allowed to install & change plugin settings and have visited Warp-iMagick settings page. Usually only administrators.

    Indeed, on plugin uninstall, Warp-iMagick page UI state should have been removed from WordPress user settings (&cookie). This will be fixed very soon, on next release.

    Thanks again.

    Thread Starter sasasasaaa

    (@sasasasaaa)

    Hi, thanks. I do not have your plugin installed anymore. So how can I delete this? I do not want any script or function in my system from a plugin I do not have installed.
    Thanks

    After uninstall, there is no any Warp-iMagick script or function on your system.
    Session/cookie should eventually expire.

    If you insist to remove value now, edit wp_user-settings value or remove wp_user-settings key from wp_usermeta table.

    If you don’t know how to edit database, you may temporary add code below to your theme functions.php

    
    add_action( 'init', function () {
        delete_user_setting( array(
            'warpimagicksections',
            'warpimagicktabindex',
            'warp-imagick-sections',
            'warp-imagick-tabindex',
        ));
    });
    

    After any admin page load/reload, remove that code from functions.php.

    Thread Starter sasasasaaa

    (@sasasasaaa)

    Hi, ok, done. Thanks alot.

    @sasasasaaa

    Why did you uninstall Warp-iMagick plugin?

    I actually made this plugin because I was using ewww plugin for a while, until they started selling paid version. Selling paid version is OK, not a problem, but they crippled free version just enough to not pass a Google test score.

    Thanks.

    Thread Starter sasasasaaa

    (@sasasasaaa)

    Because your plugin doesn’t make webp images from original images. I have blocked all other image sizes which will be created by wordpress and themes. To much webspace use.

    @sasasasaaa

    Actually Warp-iMagick does create webp clones for all image sizes, including original.

    Maybe you have tried first/old version.

    Thank you.

    • This reply was modified 4 years, 1 month ago by ddur.
    Thread Starter sasasasaaa

    (@sasasasaaa)

    I tried around 2 weeks ago.
    May I do not remember well about webp anymore.
    May it was that original images were not compressed.
    And plugin creates all images sizes even if I block them. So my webspace would be overloaded.

    @sasasasaaa

    Yes, original images are not compressed.

    That is to enable regenerate thumbnails from original,
    again and again, without loosing quality for each regenerate.

    Next release (v 1.3.13) will back up the original and compress original to same full-size.

    Version 1.3.13 is in testing, right now. ??

    Where/how do you block thumbnail sizes?

    Thread Starter sasasasaaa

    (@sasasasaaa)

    Hi, sounds great.

    I blocked all image sizes in my functions.php:
    add_action(‘intermediate_image_sizes_advanced’, ‘cp_remove_extra_image_sizes’);
    function cp_remove_extra_image_sizes( $sizes ) {
    unset( $sizes[‘et-pb-post-main-image’] );
    unset( $sizes[‘et-pb-post-main-image-fullwidth’] );
    unset( $sizes[‘et-pb-post-main-image-fullwidth-large’] );
    unset( $sizes[‘et-pb-portfolio-image’] );
    unset( $sizes[‘et-pb-portfolio-module-image’] );
    unset( $sizes[‘et-pb-portfolio-image-single’] );
    unset( $sizes[‘et-pb-gallery-module-image-portrait’] );
    unset($sizes[‘medium_large’]);
    unset( $sizes[‘1536×1536’] );
    unset( $sizes[‘2048×2048’] );
    unset( $sizes[‘et-pb-image–responsive–desktop’] );
    unset( $sizes[‘et-pb-image–responsive–tablet’] );
    unset( $sizes[‘et-pb-image–responsive–phone’] );
    return $sizes;
    }

    eww has this oportunity direct in the plugin.
    I can choose which sizes has not to be created.
    So the only use the size I upload.

    Thread Starter sasasasaaa

    (@sasasasaaa)

    And I also make changes to WordPress -> Settings -> Media. width and height from thumbnails, and the other 2 images sizes get a 0.
    So no images created from this place.

    Thanks!

    @sasasasaaa

    To stop generating any image-sizes (thumbnails) on upload:

    
    add_filter( ‘intermediate_image_sizes_advanced’, function( $sizes ) {
    	return array ();
    }, -999 );
    

    OR

    To remove all WordPress & theme image sizes (thumbnails) everywhere, including stop generating any image-sizes (thumbnails):

    
    add_filter( 'intermediate_image_sizes', function () {
    	return array (); // Remove WordPress sizes.
    });
    
    add_action( 'init', function () {
    	global $_wp_additional_image_sizes;
    	$_wp_additional_image_sizes = array(); // Remove theme sizes.
    });
    

    Attention/Disclaimer:
    1) I didn’t test/try the code above, it may produce fatal error.
    2) I do not know how WP & Theme will behave without defined sizes or missing thumbnails.
    3) Code above will not remove already generated (existing) sizes (thumbnail-files).
    4) You may try this, but you are on your own.
    5) Code may work with & without Warp-iMagick.
    6) Code may or may not work with other image compression/optimization plugins.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘cookie appears , plugin not installed’ is closed to new replies.