Keeping Thumbnails Same Height in Slider

Permalink Browser Info Environment
Thank you for this addon. If you scroll down the home page ofhttp://indigocharlotte.com/ you will see your gallery in action as a Slider. All the images in the gallery are 600 pixels in height, and I need them all to display at full height, regardless of their width. I have tried leaving the dimensions blank in the Settings, and also used just the 600 pixel height setting and left the width blank. The vertically-oriented images display fine, but the wider horizontal images all shrink, rather than display at their full image size (600 pixel height). This won't work if I can only use images with the same aspect ratio, so I appreciate your help. Thanks.

Type: Pre-Sale
Status: In Progress
DBKG
View Replies:
Parasek replied on at Permalink Reply
Parasek
Hi,

Most likely, you should check "Crop" next to image dimensions.
DBKG replied on at Permalink Reply
DBKG
Thanks, but if I click "Crop," it requires height and width—and while they are the same height, they aren't the same width. I don't want to crop the images—I just need each image to display at its actual dimensions.
Parasek replied on at Permalink Reply
Parasek
Do you want to achieve variable width of slides (so most right slide will be partially visible)? Like in:
https://swiperjs.com/demos#slides-per-view-auto...

Currently, only fixed/even width of of columns is possible. So that requires cropping or images having same dimensions.
DBKG replied on at Permalink Reply
DBKG
Yes, I need variable widths. So, while this is a great addon, it is apparently useless for what I need.
Parasek replied on at Permalink Reply
Parasek
I'll take a look it later, check if it is easy to implement and let you know.

Cheers
DBKG replied on at Permalink Reply
DBKG
That would be awesome. Even if it turns out to be too much to be worth the time, I appreciate your looking into it.
Parasek replied on at Permalink Reply
Parasek
You can try replace those lines in package folder:

a) line 69, 74, 79
packages/grand_gallery/blocks/grand_gallery/js_files/swiper.js
slidesPerView: 'auto',


b)line 74
packages/grand_gallery/blocks/grand_gallery/view.php
<?php if ($templateName=='slider'): ?><div class="swiper-slide" style="width: auto;"><?php endif; ?>



Set thumbnail height (leave width empty).
Let me know how it behaves/looks (especially on mobile).
If everything is ok, I can implement it in package.
DBKG replied on at Permalink Reply
DBKG
Thanks!

Perfect on desktop.

Still reducing the horizontal images on mobile. (iPhone—I haven't checked a teblet yet.)
Parasek replied on at Permalink Reply
Parasek
Haven't tested it on iPhone yet though. But on other mobile browsers it behaves like on desktop,
Be sure, page is not cached on your phone browser (what I think is probably happening).
DBKG replied on at Permalink Reply
DBKG
You are correct. (I clear my cache on desktop regularly but somehow forget about that on my phone.) This is marvelous, and I am so appreciative of your efforts. Thank you!
Parasek replied on at Permalink Reply
Parasek
In version 2.4.0 you can set this option when editing block in:
"Texts" -> "Slider - Slides per view auto"

concrete5 Environment Information

# Concrete Version
Core Version - 9.2.8
Version Installed - 9.2.8
Database Version - 20240122172319

# Hostname
vps32974.inmotionhosting.com

# Environment
production

# Database Information
Version: 10.2.44-MariaDB
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Character Set: utf8mb4
Collation: utf8mb4_unicode_ci

# Concrete Packages
Grand Gallery (2.3.1), Modena Theme (2.2.0)

# Concrete Overrides
None

# Concrete Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Database Entities Settings
Doctrine Development Mode - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
8.0.30

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
max_multipart_body_parts - -1
memory_limit - 128M
post_max_size - 32M
upload_max_filesize - 2M
zend.exception_string_param_max_len - 15
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.