Topic: Lightbox image size

dors9590 free asked 4 years ago

Expected behavior Hi, I am using you lightbox component i have random photos with different sizes. There is any way to make all photos in the lightbox the same size (heigh and width) without editing the photos them selfs? Actual behavior cant make it work Resources (screenshots, code snippets etc.)

Jakub Chmura staff answered 4 years ago

Hi @dors9590,

Unfortunately, it's not possible,

If you want to add several photos of the same size, you must keep the same proportions. Then the pictures may have different sizes (height and width), but with the same ratio, they will be the same size (they will scale to the same size). Other photos (with different ratios) will never have the same height and width, you must edit them yourself.

Best, Kuba

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.26.0
  • Device: macbook
  • Browser: chrome
  • OS: OSX
  • Provided sample code: No
  • Provided link: No