layout – Image grid with clear order and different aspect ratio

I am making an image grid which shows about 200 images and they are user submitted, so I do not know the dimensions of the images. Some are portrait. Others are landscape. Most are landscape.

I have seen similar questions, but my requirements are different, so I cannot use their answers.

  • The order of the images must be clear to the user (so we cannot masonry grid)
  • We can inspect the photos and decide how to show them based on their size
  • We can cut some off the photos if needed, but we cannot show a portrait photo in landscape mode and vice versa.

These rules seems to inevitably end up with the following view:

enter image description here

However, I don’t like it because of the grey boxes or worse yet, without the grey, it looks pretty chaotic. What is an alternative to this view, considering the same rules?

UPDATE:
StackExchange user “locationunknown” suggested I look at Flickr. Because I cannot add an image to a comment, here is a screenshot from Flickr to illustrate what he means.

enter image description here

dnd 5e – Can an Aspect of the Moon Warlock choose to sleep whenever they want?

You can sleep if you want.

“Does not need” is not the same thing as “cannot”. This is evident from the feature’s use of both phrases.

You cannot be forced to sleep. This clearly means that no external force can cause you to be put to sleep.

In contrast, you do not need sleep, but this does not restrict your ability to do so. It simply means that you do not suffer any negative complications from insomnia.

As a DM, I just let my players sleep when they want, unless there is some extenuating circumstance preventing it, such as being in a rainstorm without shelter.

Most Common Aspect Ratio? – Photography Stack Exchange

The two most common aspect ratios are 4:3 and 3:2. You will also see a significant number of 1:1 (square) photos and 16:9 (“widescreen”) images.

3:2 is the aspect ratio of 35mm film cameras, and that has carried over to most DSLRs, both the APS-C size and “full-frame”. Most compact digital cameras, along with the Micro Four Thirds interchangeable-lens mirrorless system, use 4:3.

Most smartphones are also normally 4:3, but popular apps like Instagram produce square 1:1 images, so you can’t discount that. And, the HDTV-like 16:9 aspect ratio is a common option in many cameras of all types (usually but not always just by cropping off the top and bottom of each image in-camera).

It would probably also be wise to consider the possibility of arbitrarily-wide panoramic images, as many cameras (both via apps and just as a feature) have the ability to produce those very easily. And, of course, you really shouldn’t discount cropping, both to historically-standard ratios like 8:10 and 5:7, and completely arbitrarily.

And keep in mind that you will also see these turned the other way: 3:4 and 2:3 for portraits; 9:16 looks odd and is less likely, but the theme here really is that anything goes.

This is all off of the top of my head, but if you’d like the referenced and researched background on these aspect ratios and other common ones found in photography, see my answer to What historic reasons are there for common aspect ratios?

dnd 5e – Does the Sleep spell put a warlock with Aspect of the Moon to sleep?

Sleep says:

The spell sends creatures into a magical slumber. […] each creature affected by the spell falls unconscious until the spell ends, the sleeper takes damage, or someone uses an action to shake or slap the sleeper awake.

The spell makes it clear that it puts the creature to sleep. Note the many reference to sleep sleeping and awake in the spell effect description. The unconscious condition is simply a mechanical way the game models sleep, but it does not change the fact that the spell indeed puts a creature to sleep.

The Aspect of the Moon invocation says:

You no longer need to sleep and can’t be forced to sleep by any means.

Having this aspect clearly then negates any attempt to put the warlock to sleep. And since sleep tries to do just that, the invocation allows them to be completely unaffected by the spell.

Cannot get aspect ration to 1 with simple Graphics

I am learning Mathematica and doing a simple animation project which animates the harmonic motion of a pendulum. For some reason, I cannot get the simplest thing to work — the aspect ratio for my pendulum graph will not go to 1. I have whittled my code down to something extremely simple that illustrates my problem:

Graphics[Line[{{0, 0}, {.5, -.5}}], Axes -> True, PlotRange -> {{-1.1, 1.1}, {-1.1, 0}}, AspectRatio -> 1]

Output of the code above

Can an Aspect of the Moon Warlock choose to sleep?

Aspect of the Moon (an eldritch invocation for the Pact of the Tome warlock) grants this benefit:

You no longer need to sleep and can’t be forced to sleep by any means.

This seems to leave open the option to sleep if the warlock wants to. Normally characters (or real people) can’t just decide to fall asleep, though, they have to be sleepy/tired. But presumably the warlock does not get this kind of sleepy, ever, at least not so much that they’d need to sleep.

If a warlock wants to go to sleep for some reason, how does this work? Can they just choose to fall asleep at any time (if it’s quiet enough etc), despite not needing to sleep?

image processing – How to open a raw file in Camera Raw full size rather than cropped to in-camera aspect ratio?

On a recent photography holiday I took a number of photographs using the in camera option to change the image size to, for example, 16 x 9. The native image size of the camera is 4:3.

I transferred the images to an Epson-7000 viewer. The viewer shows the JPEGS in the selected image aspect, but the RAW files appear in 4:3. Some of the images were incorrectly cropped in the camera and I would like to correct this in Photoshop. However, when I open the RAW files in Camera Raw, I see the cropped versions and not the full images as seen on the Epson Viewer.

Is there any way to set Camera Raw to open the images in the 4:3 format and without the in camera image size applied?

swift – How to enforce window aspect ratio for a SwiftUI app on macOS?

Adding an aspectRatio modifier seems no effect on the window.

WindowGroup {
    ContentView()
        .frame(minWidth: windowSize().minWidth, minHeight: windowSize().minHeight)
        .frame(maxWidth: windowSize().maxWidth, maxHeight: windowSize().maxHeight)
        .aspectRatio(2/1, contentMode: .fill)
}

The definition for the windowSize struct used in the code snippet above

struct windowSize {
    let minWidth : CGFloat = 200
    let minHeight : CGFloat = 100
    let maxWidth : CGFloat = 600
    let maxHeight : CGFloat = 300
}

Wrong aspect ratio for video sent with Whatsapp (only when cut)

When I take videos with my Sony Alpha 5000 and transfer them to my Android device, the aspect ratio looks fine in all players tested (F-Stop, VLC, MX Player Pro, ES Media-Player).

When I send such a video with WhatsApp and keep the full length, it still looks fine. But when I change the video length in WhatsApp before sending, the video will be sent with a wrong aspect ratio (squeezed):

Screenshot of a video of a cube sent via WhatsApp

This is a link to the video in case you want to reproduce what I did:
https://www.dropbox.com/s/8onztsj9to84zp4/MAH05889.MP4?dl=0

Has anybody observed this issue, too? Is something wrong with my video file?

Side question: How can I fix the video orientation?