WordPress.org

Ready to get started?Download WordPress

Forums

Magic Fields 2
Remove prefix from Phpthumb generated images (2 posts)

  1. S3nd41
    Member
    Posted 3 months ago #

    Hello,

    I was wondering if there's a way to remove that prefix string of randomly generated letters and numbers on thumbnails generated through phpThumb my Magic Fields.

    It generates filenames like: th_cecf222fea289363bccd0bdcb765c3db_1397862287imagefilename.jpg which is somewhat terrible in terms of SEO where your image filenames should refer to a name actually relevant to the image.

    Thanks!

    https://wordpress.org/plugins/magic-fields-2/

  2. hunk
    Member
    Plugin Author

    Posted 2 months ago #

    the problem where is the number before the filename image is a md5 of parameters, MF check if exist the image with new params (w,h,q,c) if not exist generate the image, if exit only return the url of image.

    MF not used phpthumb, only retain the name backward compatibility, it is actually a small class that uses the functions of WP for handling Image.

    you can add phpthumb or other library for image.

Reply

You must log in to post.

About this Plugin

About this Topic