EXIDE |
12-22-2011 07:55 PM |
Quote:
Originally Posted by klaus
(Post 2279569)
How do I know if it is working and/or what percentage the image got compressed.
I have a similar plugin in Wordpress and love it.
A future addition would be the ability to re-smush attachments already in the forum. Attachments that got uploaded prior to this plugin.
|
At the moment you can check the image size by admincp or checking the attachment file directly, I'm also planning to add some stats data to the attachments displaybits.
Currently working on giving people the option to re-smush attachments at the moment, I expect to update this mod in the next 2-3 days.
Quote:
Originally Posted by Disasterpiece
(Post 2279661)
This messes up my error_reporting setting... Could you change it to this?
PHP Code:
$err_old = error_reporting(0);
if (file_exists($sattachment['attachment_folder_id']))
{
...
}
error_reporting($err_old);
Did this by myself but maybe you might want to include this in the next update, since it's more generic and respects the administrator's own settings.
@see http://de3.php.net/manual/en/functio...-reporting.php
|
I don't plan too make this modifcation compatible with other mods at the moment, but your free to make that change for yourself. Although the next version will not require to disable error_reporting.
Also if you want to get the current error_reporting level for the script just remove the "0" from the function. As your way disables error_reporting for the rest of the script.
|