• Resolved mdidesign

    (@mdidesign)


    Hello,

    you can set some sizes for thumbnails in WordPress – yes. But what if there are some sizes which are not set within WordPress Media settings, but through a plugin? For example I am using a function that automatically generates a new image depending on the set sizes. Example: A picture shall be shown in 627x489px – when loading the page the function recognizes the need for an image with 627×489 and generates this file “on the fly” (example: testfile_627x489.jpg).

    Is it possible that such images (also stored in the images-folder together with all the standard-size-pictures) are also regenerated with Smush-it?

    Regards

    https://www.ads-software.com/plugins/wp-smushit/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @mdidesign,

    I hope you’re well today! ??

    Sorry for the delay here but I’ll be happy to see how I can assist. The plugin actually relies on attachment functionality of WordPress and can smush anything in the media library.

    Does that plugin use the media library?

    In case it helps, the code used for manual operations is on line 304 of wp-smushit.php, in the smushit_manual( ) function.

    You can see there how the plugin handles manual processing and relies on attachment functionality of WordPress.

    Hope that helps but please feel free to ask if you have questions on this. We’re happy to assist! ??

    Cheers,
    David

    Thread Starter mdidesign

    (@mdidesign)

    Hello,

    thank you for this kind reply! My theme uses the “filosofo-image” plugin. It is not installed through WordPress, it is integrated in my theme. If I define for example 600x150px for a featured image on a single-page the plugin automatically creates an image like abcdefgh_600x150.jpg, when this single page is loaded by the first time. After that it always uses the created image file of course. But those images do not appear in the media library, they are just in the default upload-folder together with all standard files with standard sizes of WordPress.

    So how could I make Smush.it work with those automatically created images?

    Hi @mdidesign,

    Thanks for your reply. I’m afraid that at this time, there’s no easy way to make the operation work with images outside of the media library.

    The plugin is built specifically for media library images/attachments.

    It’d require custom code more extensive than we could provide here for that to work otherwise, sorry. But I’ll mention this to the team as something to look at possibly making easier in a future version.

    Sorry we don’t have a solution at this time, but I hope the details I mentioned above within the plugin file will help.

    Cheers,
    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What if not just using standard-thumbnail-sizes of WordPress?’ is closed to new replies.