Add positioning for image cropping

More
9 years 2 months ago - 9 years 2 months ago #57932 by Sulpher
Dear developers,
New FlexiConent is just amazing! Works very fast, I and colleagues are pleased to use it! Now we decided to extend our website with new section and noticed that there is no option to set positioning for image cropping process. I mean Flexi just take centering the thumbnail.

Please take a look at the screenshot:



I kindly ask to submit such feature request. Otherwise could you please give an advice where I can change the code to get cropping from the top of original image?

Thank you.
Kind regards,
Eugene.

RoundTheme - templates for Kunena, AcyMailing & JComments
NorrNext - extensions for Joomla
Attachments:
Last edit: 9 years 2 months ago by Sulpher.

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #57934 by micker
we need to check phptumbs option and add it if possible in flexicontent

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #57943 by Miken
I too want such an option

Flexicontent 3.1.1 & Joomla 3.7.1

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #57947 by b2z
Hello!

We have fixed it with Sulpher :)

From phpThumb docs:

zc = zoom-crop. Will auto-crop off the larger dimension
so that the image will fill the smaller dimension
(requires both "w" and "h", overrides "iar", "far")
Set to "1" or "C" to zoom-crop towards the center,
or set to "T", "B", "L", "R", "TL", "TR", "BL", "BR"
to gravitate towards top/left/bottom/right directions
(requies ImageMagick for values other than "C" or "1")


We have ImageMagick installed and changed in image field this line:
Code:
$phpThumb->setParameter('zc', 1);
to this:
Code:
$phpThumb->setParameter('zc', 'T');

If you do not have ImageMagick then it seems that filter could help:

- "crop" (CROP image)
[ex: &fltr[]=crop|<l>|<r>|<t>|<b>]
where <l> is the number of pixels to crop from the left
side of the resized image; <r>, <t>, <b> are for right,
top and bottom respectively. Where (0 < x < 1) the
value will be used as a percentage of width/height.
Left and top crops take precedence over right and
bottom values. Cropping will be limited such that at
least 1 pixel of width and height always remains.

The following user(s) said Thank You: Sulpher, ggppdk

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #57950 by ggppdk
Hello

thanks for suggestion,
i have opened this issue with v3.0.10 (or v3.0.10+) milestone
github.com/FLEXIcontent/flexicontent-cck/issues/326

to examine adding configuration for this (i have not studied your contribution yet !)

v3.0.9 is close to being finished, fixing almost all reported issues


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: b2z

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #57951 by b2z
Great, thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.805 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline