-
Notifications
You must be signed in to change notification settings - Fork 57
SLIR + Focus Point = Perfect #41
Comments
Have you tried the smart cropping feature? It might give you better results. |
I don't see a smart cropping feature in the document. Can you please point it out for me? For example, you have a 1600x200 image and you want to crop to 100x100. You have the markup is like this: and you have the cropped image of width from 700 to 900 and of height 200 from original image (200x200), and rezise to 100x100. But sadly the focus point of original image is on the right side of the image so the cropped image is out of focus and be a pointless photo. But now if we add a parameter to point out the focus point of the image in the url, like example: (Sorry for my bad English) |
Ah right, it isn't really documented in the readme I guess. I haven't really worked with this code in many years, so I'm having a hard time remembering how it is done, but I think in your config you would want to do set Here's where that option is in the default config, for reference: SLIR/core/slirconfigdefaults.class.php Lines 99 to 110 in 93b880a
|
Wow, it make a huge different to the result. Thank you master, for the contribution, helpful and awesome programs you have made. BTW, I still want to try my idea of manual focus point parameter myself, just in case of needed. |
Problem: SLIR crop with focus point in the center of the image, but if the focus point of the image was in the side or corner of the image, sometimes the cropped image cut off the important part of the image and make it pointless.
Solution: Add the focus point or focus area parameter to url.
I'm working on it but I'm not good with logic so any have suggestion how to do it properly ?
The text was updated successfully, but these errors were encountered: