• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RedTurtle / design.plone.policy / 39243636139
82%

Build:
DEFAULT BRANCH: main
Ran 19 Oct 2026 11:23AM UTC
Jobs 1
Files 25
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Oct 2026 11:17AM UTC coverage: 81.182% (+2.8%) from 78.394%
39243636139

push

github

web-flow
Optimize base64 images in card and alert blocks (#90)

* Optimize base64 images in card and alert blocks

The "testo_riquadro_immagine" and "alert" blocks store their image inline
as base64, so large uploads make the page payload huge (12 MB on a real
home page). A block deserializer now resizes these images to max 1600px
and converts them to WebP on save; images already optimized are skipped.
Upgrade step 3105 migrates existing contents (blocks, blocks fields and
site root) and logs every optimized image with a final summary.

* Fix black formatting

* Pin black version in CI

* Use block_types index also for blocks fields in upgrade step

* Do not commit intermediate transactions in upgrade step

* Skip images under 1600px and 500 KB

* Convert all non-WebP images, drop the size in bytes threshold

* Skip images under 1600px and 100 KB

* Add dry run script for the block images upgrade step

* dry run script: add --full scan and index diagnostics

* dry run script: also list images that need no optimization

* dry run script: use plone.api and getAllBrains

* Upgrade step: scan all brains when block_types index is missing

112 of 120 new or added lines in 2 files covered. (93.33%)

522 of 643 relevant lines covered (81.18%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
91.11
src/design/plone/policy/block_images.py
Jobs
ID Job ID Ran Files Coverage
1 60-3.11 - 39243636139.1 19 Oct 2026 11:23AM UTC 25
81.18
Source Files on build 39243636139
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 87fdbb5b on github
  • Prev Build on main (#37331138507)
  • Next Build on main (#39251625704)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc