이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Startklar Image Optimizer

설명

This plugin allows you to optimize images from your media library and thus improve the SEO performance of your site.
This plugin is based on the JPEGOPTIM utility and PNGQUANT utility which must be installed on your host.
The essence of our plugin is that when it starts, it sorts through all the attachments for the articles of your WP-site
and processes them right at the place where they are located.
After that, the attachment is marked as processed, which prevents it from being processed again.
In the admin page you can view the total number of your images and the number of processed images,
as well as select the number of images to be processed in one cycle.
At the moment, the script for optimization is made in the form of a standard wp-action (its name is “startklar_image_optimizer_process”)
that can be called from another place.

Here is an example of how to call this action:
do_action( ‘startklar_image_optimizer_process’ );

For example, for a simple implementation, you can use the “WP Crontrol” plugin (https://ru.wordpress.org/plugins/wp-crontrol/)
by which you can create a cron task that can optimize one image every minute.
This tactic was chosen in order to process all the files of the site without introducing excessive load to the site
(since the native cron in WP is activated by hits and has a runtime limit, like similar http sessions of this host).

Screenshot #1 shows how easy it is to set up a cron-task.

스크린샷

  • How easy it is to set up a cron-task.

설치

Plugin installation.
Installation is done as standard for WP. Install “WP Crontrol” plugin in addition if you need to run cron optimization.

Plugin setup.
The setup interface is as simple and intuitive as possible.
Go to the admin page and make sure you have the JPEGOPTIM utility and the PNGQUANT utility installed.
Use the admin page to view statistics and select how many images, are processed per cycle.
Usage.
Create a new cron task for the action “startklar_image_optimizer_process” in the plugin “WP Crontrol”.
Screenshot #1 shows how easy it is to set up a cron-task.

FAQ

How can I check that the plugin is configured and working correctly?

You can temporarily activate debug mode in WordPress.

define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );

‘WP_DEBUG’ is a PHP constant (a permanent global variable) that can be used to trigger the debug mode throughout WordPress.
‘WP_DEBUG_LOG’ – When set to true, the log is saved to debug.log in the content directory (usually /wp-content/plugins/startklar_image_optimizer/debug.log) within your sites filesystem. Alternatively, you can set it to a valid file path to have the file saved elsewhere.

Now you can see lines like this in your log file:

START OPTIMIZATION 14.06.2022 18:25:18
_wp_attachment_metadata id=26
PROCESS FILEC:\xampp1\htdocs\my-wp/wp-content/uploads/2022/06/pexels-jhovani-morales-12319997-200×300.jpg BY jpegoptim
END
After processing, the source file should reduce in size, it’s not difficult to track.
After checking, return the constants that are responsible for debugging to their original state.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Startklar Image Optimizer”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Startklar Image Optimizer”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0

  • First Release