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

  1. S3nd41
    Posted 2 years ago #


    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.



  2. hunk
    Plugin Author

    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic