Request: Scale image to Background/Canvas height automatically when importing
Operating System: Windows 11
Description of the feature
Essentially, what I'm requesting is a togglable function that will automatically scale images to the existing canvas (Background layer) size when I import them into Gimp. You can find similar functionality in Photoshop (which enables this functionality by default on a fresh install) where it'll scale the imported image to the canvas layer's height immediately upon import (while maintaining the original aspect ratio), which can make some types of work much easier to do quickly.
This is possible manually. As an example, if I create a 1920x1080 Background layer (canvas), and I import, say, a mobile phone screenshot, I would use the Layer>Scale Layer function to adjust the height to 1080 (I would let the Scale Layer function maintain the original aspect ratio here). This can take a long time (comparatively speaking) if I'm trying to do something like line up three mobile screenshots into a single image for use in a blog or social media post.
The closest I've been able to come to this is the ofn-autoscale-layer plugin script. However, despite its name, it's still a manual process requiring a keyboard shortcut. It's essentially just Scale Layer but adjusts the imported layer to the Background layer height when activated without any additional input from the user.
Use cases
The use case is, admittedly, pretty minor. It would be mainly used for quick and dirty image creation for use in things like blog posts like the one linked where one may want to line up 3 mobile screenshots in a single image. Any workflow that involves quickly tossing an image into Gimp to scale it for social media / blog post use could benefit from this. The manual methods described above aren't terrible for this kind of work, but an automatic toggle can save a pretty significant amount of time at scale.