Question: is there a way to resize a image by percentage? E.g. i want the image to be 200% of the original image (and a lower quality).
Is this possible?
PS: getting the dimensions beforehand should be possible with $file->dimensions() but a “oneLiner” would be great.
Well, I see that these articles are about using images of double pixel size for retina displays, but I can’t find anything in them that tells you to artificially blow them up. Rather, take a big image and create two different sized versions of it, @1x and @2x, maybe @3x.
There is the $image->scale(0.5) option. Sadly there’s no parameter for the quality.
Maybe it would make sense to add a quality parameter just like with $image->crop(300, 200, 70)?