similar to the link i provided it’s a project where a customer can browse through galeries of watermarked files, put them into a cart, and checkout. after an order has been placed and verified, he’ll gain access to the original not-watermarked version.
regardless of when and how, the server has to handle about 6000 images with 3500 px in a timely manner (time is of the essence). images after being uploaded and processed stay available (so thumbnails are ok)
my attempt so far has been:
original images in /content/store/kategory/subcategory/images.jpg
(while the original images are protected with htaccess deny all)
after going through some checkout and payment process an order will be created, and the customer is able to download their order (original files are basically called via $file->download())
thumbnails / watermarked images are saved seperately in thumbnail folder (thumb/store/category/subcategory/images.jpg) , so they are not affected by htaccess, as well as everything is a bit sorted.
while every part of application is working as intended, i am looking to make some improvements. the more automation is involved the better.
from the link i provided, i can tell that that script is creating 400 px previews as listing within category view, and the detailed 1 image page with the zoom in effect is using the original one but places the watermark on top of each crop (on the fly) - i actually bought that script a while back and had a look on the code. i can assure you this script is a mess…
the link you provided exif.co is no option as we are talking about too many images (and views) and it seems like it involves to manually copy and paste html from their service.
the point is, the thumbnail generation needs to be done only once (it needs to be done anyways) and even if there’s a picture getting added, it only has to process only that new one. i could generate thumbnails on localhost and upload thumbs + originals in one go, so at least the live server won’t get sweaty…
anyhow that’s exactly why i am looking for suggestions.
++ Edit ++
i notice that adding text vs adding watermark png is quicker in general but my approach ( Extend $image with $image->overlay() or $image->watermark() ) is limited to 100% opacity and the text is not wrapping around e.g. text not taking a new line when image corners has been reached.