
- #GIFSICLE WORDPRESS INSTALL#
- #GIFSICLE WORDPRESS CODE#
The private box looks like this: hidden link If you do not, please ask me to enable the private box. DO NOT post your website details unless you see the required wp-admin/FTP fields.
If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. Please make a backup of site files and database before providing us access. We have strict policies regarding privacy and access to your information. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access.
I will be checking various settings in the backend to see if the issue can be resolved. The information you will enter is private which means only you and I can see and have access to it. You will find the needed fields for this below the comment area when you log in to leave your next reply. I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. Thank you very much for working on those tests! I sincerely apologize for the delay with this. I can provide you FTP and WordPress admin if you want. "Duplicate media: please try again (error)"
It's not working, do you have the possibility to access directly my website to see ? I have test all your steps but not working Let me know about the outcome of this investigation. If you locate it there, please send us the last lines here in the ticket.
#GIFSICLE WORDPRESS CODE#
Please check the following links to read more about debugging with WordPress.Īfter adding the code above, try to reproduce the issue again and check if you'll find a debug.log file inside the wp-content folder. Use dev versions of core JS and CSS files (only needed if you are modifying these core files) Disable display of errors and warningsĭefine( 'WP_DEBUG_DISPLAY', false 'display_errors', 0 ) Note: thumbnails regeneration commands such as wp media regenerate will trigger plugin optimization functions as well.// Enable Debug logging to the /wp-content/debug.log file
#GIFSICLE WORDPRESS INSTALL#
Install wp-cli and ensure wp-cubi-imagemin is activated. If no custom logger is provided, inpsyde/wonolog will be used if available.Īpply_filters('wp-cubi-imagemin\wonolog_channel', \Inpsyde\Wonolog\Channels::DEBUG) : Filter inpsyde/wonolog log channel.īulk image optimization can be done using wp-cli : HooksĪpply_filters('wp-cubi-imagemin\options', $options) : Filter the options of ImageOptimizer\OptimizerFactory (see the complete list), such as the JPG compression level (default to 85 in wp-cubi-imagemin).Īpply_filters('wp-cubi-imagemin\custom_logger', null)) : Allow to provide a custom logger that implements Psr\Log\LoggerInterface. Note: binary files must have execution permissions. You don't need to have all the tools working, but it is recommanded to have at least pngquant, jpegoptim and gifsicle to provide a meaningfull level of minification. If it doesn't find an installed version on the system, it will just skip this tool and use the other ones. If you do not define one ot the binaries paths, the plugin will try to use the system version. To use your own binaries, just define the following constants in your configuration files, pointing to your binaries paths : define( 'WP_CUBI_IMAGEMIN_PATH_BIN_ADVPNG', '/var/www/your-project/bin/advpng') ĭefine( 'WP_CUBI_IMAGEMIN_PATH_BIN_GIFSICLE', '/var/www/your-project/bin/gifsicle') ĭefine( 'WP_CUBI_IMAGEMIN_PATH_BIN_JPEGOPTIM', '/var/www/your-project/bin/jpegoptim') ĭefine( 'WP_CUBI_IMAGEMIN_PATH_BIN_JPEGTRAN', '/var/www/your-project/bin/jpegtran') ĭefine( 'WP_CUBI_IMAGEMIN_PATH_BIN_OPTIPNG', '/var/www/your-project/bin/optipng') ĭefine( 'WP_CUBI_IMAGEMIN_PATH_BIN_PNGCRUSH', '/var/www/your-project/bin/pngcrush') ĭefine( 'WP_CUBI_IMAGEMIN_PATH_BIN_PNGOUT', '/var/www/your-project/bin/pngout') ĭefine( 'WP_CUBI_IMAGEMIN_PATH_BIN_PNGQUANT', '/var/www/your-project/bin/pngquant') ĭefine( 'WP_CUBI_IMAGEMIN_PATH_BIN_SVGO', '/var/www/your-project/bin/svgo') But you can provide your own binaries instead, and the plugin will use them. The plugin will try to find the image minification tools it needs on the system. composer require globalis/wp-cubi-imagemin. Wp-cubi-imagemin is essentially a WordPress wrapper for psliwa/image-optimizer. It uses a couple of image minification tools to optimize uploaded images ( jpg, png, gif and svg). Wp-cubi-imagemin is a very simple image minification plugin for WordPress, meant to be used in a composer installation. Standalone image minification WordPress plugin