Closed rungta closed 5 years ago
Actually, on closer inspection, the entire hash was turning out to be the same. That is because the string being hashed also ends up being the same for both the left and right position values, due to the is_array($v) ? implode('-', $v)
condition, where the keys are not factored into the hash.
This has been fixed for the next release.
https://github.com/aelvan/Imager-Craft/blob/f7e80a3cd8c3b3a29fd8ca8961bf452727d52a32/src/helpers/ImagerHelpers.php#L360
We allow clients to control the watermark position on their images (left vs right). This results in transform configs like:
However, since only the first ten characters of the watermark config hash are being considered, both left and right options are resulting in the same filename
…_WM_00266a72f0.jpg
, leading to a collision.