Keyword

PLUGIN: Image Cropping, Fit W&H and More...

  • harikaram
  • harikaram's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 8 months ago #92537 by harikaram
I've just finished coding a new extension that allows for more flexible image handling by K2.  I'm hoping there might be a couple early adopters out there or people desperate for a fit-to-height feature to help me test it a bit more before I release it at large...

 

Key Features:


Set items' images to fit by width AND height, or by either only
Auto crop to predefined aspect ratios. Allows uniform image sizes and square thumbs
Preview and override individual image size for an item (eg if you didn't like the autocrop or quality on the XSmall size, for example)
Saves images by JPEG quality OR desired final filesize
Configurable individually for each K2 image size (XSmall, Small, etc, but not per category at the mo')

It requires PHP 5.2.  It's pretty self explanatory and makes no DB changes or changes to your existing content.  Just install, enable & tweak the settings, and go add/edit an item...

 
Attachments:

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

More
13 years 8 months ago #92538 by BBC
Thank you, relly useful one.

When you click at item image (new uploaded), it shows old image in popup.

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

  • harikaram
  • harikaram's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 8 months ago #92539 by harikaram
Replied by harikaram on topic PLUGIN: Image Cropping, Fit W&H and More...
I've noticed that sometimes the browser caches the K2 image preview and it doesnt show up straight away.  Try clearing the browser cache. 

 

If that doesnt help, let me know exactly what you are doing and whats happening as I'm not entirely clear from your comment...

 

Thx for the feedback...

BBC said:

Thank you, relly useful one.
When you click at item image (new uploaded), it shows old image in popup.

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

More
13 years 8 months ago #92540 by BBC
I´ll do it soon.

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

More
13 years 8 months ago #92541 by JoomlaWorks
Replied by JoomlaWorks on topic PLUGIN: Image Cropping, Fit W&H and More...
Moved your post to "K2 extensions"...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
13 years 8 months ago #92542 by FeSys
Thank you so much..
That's great.

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

More
13 years 8 months ago #92543 by Stéphane Herby
Replied by Stéphane Herby on topic PLUGIN: Image Cropping, Fit W&H and More...
Just wanted to thank you for this wonderful extension... Your square thumbs is a providence for my website....

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

  • harikaram
  • harikaram's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 8 months ago #92544 by harikaram
Replied by harikaram on topic PLUGIN: Image Cropping, Fit W&H and More...
Cheers Stéphane.  Thanks for helping test it out...

Stéphane Herby said:
Just wanted to thank you for this wonderful extension... Your square thumbs is a providence for my website....

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

More
13 years 8 months ago #92545 by Dwight Barnard
Replied by Dwight Barnard on topic PLUGIN: Image Cropping, Fit W&H and More...
Hi there, 

 

Giving your extension a test drive and have a few questions?

1. Are the Resize Method and Aspect Ratio applied to override images (I can't seem to get it to work)

2. Will you be working on a filter for categories?

 

Great work and very useful plugin.

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

  • harikaram
  • harikaram's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 8 months ago #92546 by harikaram
Replied by harikaram on topic PLUGIN: Image Cropping, Fit W&H and More...
Hi Dwight,
1. Are the Resize Method and Aspect Ratio applied to override images (I can't seem to get it to work)

No.  The idea is if you don't like the the crop or the compression destroys the image too much you can do it manually and upload your own.  You can also upload a different size if you wanted.

 

The crop/resize actions occur on the main article image when it is uploaded or selected. To get it to work on an article with an existing image, you need to re-select/upload the main image.

 

2. Will you be working on a filter for categories?

Category images you mean?  The problem with categories is that K2 doesn't have any plugin hooks for them so getting the form data in and dealing with the image would require some painful workarounds.  I'm hoping they'll extend their hooks in an upcoming version.  I'm hoping more that they incorporate this plugin into the core functionality ;)  That way, we can have things such as width AND height settings rather than using the "aspect ratio" workaround to deal with the fact their is only 1 constraint in the K2 admin (ie "width")

 

Let me know how you get on with it...

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


Powered by Kunena Forum