Hi everybody, I made a quick mod to the Image Manager that adds an extra option to generate only missing images. Currently if you upload new MOPIC images you would either have to the thumb them manually in a program like photoshop or regenerate all your images server wide. (using the image regen option when Browsing products does not regen MOPICS)
The mod scans the DYNAMIC_MOPICS_BIGIMAGES_DIR (images_big/) directory and looks to see if there are corresponding image files in DYNAMIC_MOPICS_PRODUCTS_DIR and DYNAMIC_MOPICS_THUMBS_DIR. If either one of those images are missing the mod regenerates the whole images set.
There are only two modified files:
admin/images_regen.php
admin/includes/languages/english/images_regen.php
and one new file
admin/includes/languages/english/images/buttons/button_regenerate_missing.gif
Attached in a ZIP are those three files and a step by step to add the mod manually.
For me it works great! Let me know if you have any questions.
To Do: Figure out how to use the button template and make a nice looking button.
To Do: Add image compression control. Some images look really bad at the default 75 JPG compression and it would be nice to have the ability to use 99 JPG compression for select images.
*edit* forgot to remove a debug echo. found around line 840: remove 'echo 'go! <br>';'





LinkBack URL
About LinkBacks












Bookmarks