Is there a function for changing the image size?

Hello, all! I’m new to Coda, and I’m excited to present my first question to the community! :smiley:

I was wondering if there’s a function in Coda for changing the image size in an image column.
I am aware that this can be done by clicking Edit Column and selecting the size under Thumbnail size option, but I want to create a separate toggle button above the table which allows me to switch between small and extra large with just one click.

I also tried to create relate views, one set to small image size and the other to extra large, but Coda doesn’t seem to allow different image sizes for different views of the same table.

Any help will be great!

1 Like

:wave: @jenny

welcome to the community!

is this what you had in mind?

ezgif.com-video-to-gif-converter(1)

Doc for you to copy/reference from:


To explain the formula in Image Display, If the Large Image is checked, then show image with width 200 and height 200, and if not checked, show image with width 50 and height 50.
If those sizes arent what you wanted, you can changed those numbers accordingly.
Oh, also note, you may need to adjust the column width of Image Display to accommodate the image once enlarged otherwise it might looked skewed.

Shout out to @Paul_Danyliuk and @Bill_French where i learnt the _Deref_Object formula from!

hope this helps!
cheers!
Mel

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.