WordPress.org

Ready to get started?Download WordPress

Forums

EWWW Image Optimizer
[resolved] "Folders to optimize" doesnt's save my paths (7 posts)

  1. Emanuele Pisapia
    Member
    Posted 8 months ago #

    Hi! I have a troblem with the Folders to Optimize option. When i try to save my path uploads/cache where i am storing cached version of blog images the textarea returns blank after saving.

    http://wordpress.org/plugins/ewww-image-optimizer/

  2. nosilver4u
    Member
    Plugin Author

    Posted 8 months ago #

    You need to specify the full path to the folder, and it must be within the wordpress root folder. Anything else will not validate, and be removed from the settings automatically.

    Is your uploads folder somewhere besides inside the WP folder?

  3. Emanuele Pisapia
    Member
    Posted 8 months ago #

    Hello again :-)

    i have searched inside your scripts: so
    have changed my paths with full paths from the root.

    My uploads/cache folder is [....rootstuf....]/wp-content/uploads/cache
    So when scripts are launched it become just "cache" and no images are optimized.

  4. nosilver4u
    Member
    Plugin Author

    Posted 8 months ago #

    actually, the plugin should still be using the full path, not just 'cache'. Does it keep the full path you're using on the settings page?
    When you say no images are optimized, do you mean that the Optimize More tool says there is nothing to optimize, or that it reports No Savings on them?
    It is possible that some of those images are already optimized if the plugin creating them uses the wp_image_editor class to do the image creation. You should check the table to see what is already optimized on the Optimize More page.

  5. Emanuele Pisapia
    Member
    Posted 8 months ago #

    I have installed the plugin, then added two paths to optimize:

    1) my paths have been changed deleting the "/var/www....../wp-content/uploads/": so when i tried to add some echos or printing debug info I see only "cache" and no images have been optimized.

    2) the same for another folder under "uploads".

    When I lunch the Optimize More Tool only theme images are optimized.

  6. nosilver4u
    Member
    Plugin Author

    Posted 8 months ago #

    Where did you add the code to echo the paths?
    The best place to check is in the ewww_image_optimizer_image_scan() function which is called on each directory specified. If you turn on debugging, you should also be able to see each file that is being checked via the scan function when you run Optimize More. The development release (available via the Development tab on the plugin home page) has an improved search algorithm, and better debugging output if you want to try that also.

    One important thing to note is that the new version uses a slightly different database format (it checks for file size instead of md5sums), so you'll have to run a Convert operation the first time on the Optimize More page and it isn't possible to downgrade to the previous version again without emptying the image table (not generally recommended, but also available on the Optimize More page).

    It IS entirely possible that there were some bugs in the search algorithm that would have skipped images, as there were a few things I had to fix when I rewrote the function for 1.7.1.9 (the dev release), and I'm not sure which of those were related to changes I was making, and which were present in 1.7.1.

  7. Emanuele Pisapia
    Member
    Posted 8 months ago #

    Hi there :)

    Thank you for your support. I will wait for next releases. I have optimized enough my website with some other plugins and server configuration: now it's a lightning.

    I will surely add your plugin features in the future.

    Emanuele

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.