Photo Galleries
Akt 1
Summary • Updated the photo processing command to dynamically scale watermarks and apply transparency. Changes • Modified src/Command/ProcessPhotosCommand.php to calculate the watermark size as 80% of the target image width for both web_ and thumb_ variants. • Implemented 50% opacity for the watermark by using the transparency: 0.5 parameter in the Intervention Image insert() method. • Added explicit cloning of the watermark object to ensure independent scaling for each variant.
Akt 2
Changes • Modified src/Command/ProcessPhotosCommand.php to calculate the watermark size as 80% of the target image width for both web_ and thumb_ variants. • Implemented 50% opacity for the watermark by using the transparency: 0.5 parameter in the Intervention Image insert() method. • Added explicit cloning of the watermark object to ensure independent scaling for each variant. Verification • Executed bin/console app:photos:process successfully in the PHP container. • Verified syntax correctness with lint on the modified command file