Home โ€บ Modules โ€บ phyto_image_sec

phyto_image_sec

Image protection pipeline โ€” logo watermark, IPTC copyright metadata embedding, WebP conversion, optional product-name text overlay, and a batch processor for existing catalogues.

Security & Identity v0.3 PrestaShop 8 Browse Source on GitHub โ†—
modules/phyto_image_sec/
Direct path in the repo โ†’ all PHP, SQL, templates, and assets
Open on GitHub โ†—

Overview

Protects your plant photography automatically. Every uploaded product image goes through a pipeline: logo watermark โ†’ IPTC copyright metadata โ†’ WebP copy generation โ†’ optional text overlay. The only version ever served is the watermarked one. A batch processor applies the pipeline to your existing catalogue.

Version History

v0.1 โ€” First Build

Logo watermark stamped on every product image at upload. Configurable position and opacity. Right-click blocker on the front end.

  • IPTC metadata โ€” shop name and URL embedded as invisible copyright data inside every JPEG; travels with the file wherever it goes
  • WebP generation โ€” compressed WebP copy generated alongside every JPEG (30โ€“40% smaller); browser always loads the watermarked WebP, not the clean original

v0.3 โ€” Product Name Text Overlay, Batch Processor, QuickAdd Integration (current)

  • Text overlay โ€” plant name embedded directly onto the image in white text with dark outline; default position: bottom-left, rotated 90ยฐ (upward); admin-configurable position, font size, and toggle
  • Batch processor โ€” walks entire product catalogue in chunks of 20, applying full pipeline without timing out
  • phytoquickadd integration โ€” all images uploaded through Quick Add automatically pass through the pipeline

Pipeline Order

Upload โ†’ Watermark โ†’ IPTC Embed โ†’ WebP Generate โ†’ Text Overlay โ†’ Save

Source Layout

PathPurpose
phyto_image_sec.phpModule entry + hooks
classes/PhytoImagePipeline.phpOrchestrates the full pipeline
classes/PhytoWatermarker.phpGD watermark stamping
classes/PhytoIptcWriter.phpIPTC metadata injection
classes/PhytoWebPConverter.phpWebP generation via GD/libwebp
classes/PhytoTextOverlay.phpProduct name text overlay
controllers/admin/AdminPhytoBatchProcessController.phpBatch processor UI
View Full Source โ†— โ† Back to All Modules