Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Equal Height Project Images / Lazysizes Fixed Ratio ?

Equal Height Project Images / Lazysizes Fixed Ratio ?

Scheduled Pinned Locked Moved General Discussion
image sizethumbnail
11 Posts 4 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • arminunruhA Offline
    arminunruhA Offline
    arminunruh
    Global Moderator
    wrote on last edited by
    #2

    Hey, can you show me a screenshot?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lrs
      wrote on last edited by
      #3

      Sure, here you go:
      Screen-Shot-2015-12-14-at-13.48.45.jpg

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by arminunruh
        #4

        Hm, it seems that your landscape image should have a different aspect ratio, huh. I think you have to rethink how you calculate your sizes.

        Screen Shot 2015-12-15 at 10.54.34.png

        I got 12 columns, 1% column gutter.
        My portrait images are 1333x2000 and they cover 3 columns. I want my landscape image to have the same height but cover 6 columns. You can achieve this by calculating the size you need:

        4 times 3-column-1333px-width-images would fill out 100%:
        4 * 1333px = 5.332px

        Our column gutter is one percent: 5.332px/100*1 = 53.32px
        A landscape image that would cover the same area as two portrait images with a column gutter in-between would be:
        height: 2000px
        width: 1333px * 2 + 53.32px = 2719px

        In the end it's just about the aspect ratio.
        We could also use an image of 1024*753 for the landscape image. How did I find that out? With this:
        http://andrew.hedges.name/experiments/aspect_ratio/

        Also this is useful for testing sizes:
        http://placehold.it/

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lrs
          wrote on last edited by
          #5

          Hey Armin, many thanks for your reply. Will try this as soon as possible.
          I was hoping for an automated option which automatically adjusts the size of the image but I guess that's a bit too complicated and might just crop parts of my images in a weird way, I guess?!

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by
            #6

            Nope, there's no automated option for that :(

            1 Reply Last reply
            0
            • B Offline
              B Offline
              benjamin_
              wrote on last edited by
              #7

              Hey Armin, I have exactly the same problem and somehow your calculation example doesn't help me.

              I want to place 4x5 images next to 5x4 images without the same problem as seen in the lrs screenshot. With your calculation example, the line can be filled perfectly, but then portrait and landscape format have different image formats, which in my case is not desirable.
              The image height is identical for all images with 1000px. The portrait formats are 800px wide and the landscape formats 1250px.

              Is there a way to help me?

              Thanks in advance!

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #8

                oh hmmm i don't really understand your problem
                can you like show it to me with some screenshots

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  benjamin_
                  wrote on last edited by
                  #9

                  Sure, here you go

                  Bildschirmfoto 2020-04-24 um 22.41.20.png

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    benjamin_
                    wrote on last edited by
                    #10

                    hey armin, is there a chance you can help me with that?

                    1 Reply Last reply
                    0
                    • mariusjopenM Offline
                      mariusjopenM Offline
                      mariusjopen
                      Global Moderator
                      wrote on last edited by
                      #11

                      Dear @benjamin_
                      mhm. There is not really a good solution for this.
                      You can try to do some CSS magic or even use jQuery to force them all to be the same height…
                      Best!

                      Marius

                      www.mariusjopen.world

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      I also code custom websites or custom Lay features.
                      💿 Email me here: 💿
                      info@laytheme.com

                      Before you post:
                      1. When using a WordPress Cache plugin, disable it or clear your cache.
                      2. Update Lay Theme and all Lay Theme Addons
                      3. Disable all Plugins
                      4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                      This often solves issues you might run into

                      When you post:
                      1. Post a link to where the problem is
                      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                      Online Users
                      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                      laytheme.com
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search