Crop rules

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Aug 19, 2014 5:00 pm
Hello and good afternoon,
is there a short example to crop images in News Show Pro GK5 using crop rules? I tried the given syntax but actually without success.

My issue:
I want to show K2 images inside NSP GK5 with different sizes always in this way: crop 10px top, 10px right, xx bottom, 10px left. The width should always fit the div-container.

Would be great if somebody could provide an example how to set up the crop rules for this! Image size is different. Using K2 generic images.

Thank you very much!
User avatar
Senior Boarder

GK User
Thu Aug 21, 2014 8:32 am
Did you disable cache for images while you change the crop rules? The result will be only visible when the thumbnail will be rebuild and that's why it may cause a problem.
User avatar
Platinum Boarder

GK User
Thu Sep 04, 2014 8:36 am
Hi bkrztuk,
thanks for your reply. Yes, I disabled caching (and cleared cache), but I still don't get it.

Can you give me an example crop rule for this?: K2 images with different sizes. Only crop bottom part (only bottom that's new) of the images, so all images get croped to the same resolution.

Thank you!
Best regards
User avatar
Senior Boarder

GK User
Fri Sep 05, 2014 8:33 pm
Hello,

In this case using of crop rules is not necessary - you can achieve it by changing the crop settings with the image crop preview.
User avatar
Administrator

GK User
Sat Sep 06, 2014 5:46 pm
Hi,

thank you for your response. I tried the image corp preview and set the crop bottom to 40%. Now my problem is, that there is a space on the left & right of some images, that do not have the same size in original.

Is there a way to use the standard "image auto-scale" function and make the "auto-scale" happen to top and not to center?

Thank you.
User avatar
Senior Boarder

GK User
Mon Sep 08, 2014 9:53 am
In this case you can define crop rules for specific dimensions in the crop rules textarea using the following format:

Code: Select all
width:height=top:right:bottom:left;


all values without units - width/height are in pixels, top/right/bottom/left are percentage values.
User avatar
Administrator


cron