Plugin

Archived
Forum
(read-only)

EZ Image Resize

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Jerry Price

     

Leave link to original image

Feature Request

Jon @ Hanno
Jon @ Hanno

Hey there

I may be missing something simple, but here’s our issue - we need to crop an image to 600px if it exceeds that width (this is the width of the content area).

However, we’d like to have a little more control over the images so that we can use a lightbox plugin to show the original, full size images, on hover.

So ideally, a 900px wide image that has been resized would output as follows:

<class="lightbox" href="{original_img_url}"><img src="{made}" width="600" height="300" /></a

The ideal scenario would be that this lightbox class and link were only added if the image exceeded 600px, but realistically, even adding this to all resized images would be an improvement!

I’m sure this would come in handy for others as well.  Is it at all doable at the moment, or easily doable with a few fixes?

Cheers
Jon

VIM Interactive
# 1
Developer
VIM Interactive

Thanks for the request.

This shouldn’t be to hard to add, I’ll see what I can do and let you know what I come up with.

Jon @ Hanno
# 2
Jon @ Hanno

That would be absolutely fantastic, thanks!  If you do have any kind of ETA once you’ve had a quick look, that would be great too - not to rush you at all, of course, as this is hugely appreciated!

VIM Interactive
# 3
Developer
VIM Interactive

New parameter added “yes” required to add link the “classes” after the pipe is optional class string to be added to the anchor

original_link="yes|classes" 

Will be adding to next release after a few bug checks.

Jon @ Hanno
# 4
Jon @ Hanno

Thanks!  I’ve now tested this with a lightbox plugin, and as expected, it works perfectly.  Thanks for the super-quick feature addition and great support!

aelvan
# 5
aelvan

Is this implemented in the current release? I’m in need of this functionality too, and original_link=“yes” doesn’t seem to do anything..?

VIM Interactive
# 6
Developer
VIM Interactive

Looking into this now

VIM Interactive
# 7
Developer
VIM Interactive

Can’t find any easy way to download it to check so I just uploaded another version which has it. Please grab new copy and let me know if you have any issues.

aelvan
# 8
aelvan

Now it works great, thanks. The version I got when I bought it today was 1.5, the new one is 1.5.3.

VIM Interactive
# 9
Developer
VIM Interactive

Awesome!

John D Wells
# 10
John D Wells

This is a genius feature addition!

This might be pushing my luck, but:

I’m using EZ Image Resizer to size down images that have been placed within Wygwam.  Users being users though, there’s a chance that the image has already been linked.  Then if EZIR comes along and wraps the image in its own link, the HTML breaks.

Is there a chance to account for this scenario?

Cheers,
John

VIM Interactive
# 11
Developer
VIM Interactive

Nothing in place as of now but it could be something added in the future.