承接 justbetter/statamic-image-optimize 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

justbetter/statamic-image-optimize

最新稳定版本:4.0.0

Composer 安装命令:

composer require justbetter/statamic-image-optimize

包简介

Image optimization after upload

README 文档

README

Banner

Image Optimize

Image optimization after upload

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

composer require justbetter/statamic-image-optimize

Requirements

The addon makes use of batches to optimize the images. Because of this you need an active Database connection that contains the job_batches table. You can generate this table by running the following commands:

php artisan queue:batches-table php artisan migrate 

Config

Publish

php artisan vendor:publish --provider="JustBetter\ImageOptimize\ServiceProvider" 

Settings

It's possible to change to default resize width and height by overriding the config file and changing the parameters within.

Commands

php artisan justbetter:optimize:images 

By running this command you can recursively optimize all the images in the assets folder.

Options

Add the --forceAll option to force the command to optimize all images. Otherwise the command will only optimize images that have not been optimized yet.

You can also use the verbose option by adding -v to your command, this will show a progress bar containing the amount of jobs left in the batch.

Features

  • After an image is uploaded an event will trigger to optimize the image. The event optimizes the images and resizes it to a specified size, this is being controlled by the config file.

  • By using the resize images command you can recursively optimize all the images in the assets folder.

  • Added an action in the CP Asset overview that allows you to select assets and trigger the optimize job manually.

  • Added an CP page to manually optimize all images, triggering this will show a progress bar containing the remaining images.

统计信息

  • 总下载量: 11.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 4
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固