vue-flux icon indicating copy to clipboard operation
vue-flux copied to clipboard

Problems handling different image sizes and aspect ratios

Open ppasler opened this issue 4 years ago • 3 comments

Hey there,

we are using vue-flux in a light box (fullscreen) and have user input images. So we can't ensure images are big enough to fill the whole space or have a certain aspect ratio. Both images can be in the same list.

Right now the small pictures are stretched to fit the space and also widescreen images are overflowing the view.

Is there a way to not stretch small images, but down scale large images to fit in the screen?

ppasler avatar Sep 11 '20 08:09 ppasler

Hello, sorry for the late answer.

That is possible but not feasible, if you think about the behavior of animations, you will notice that the part of the image not covered will display what is behind, which will make it look odd...

But you gave me an idea... maybe I can set an option where you decide if the image should be stretched or scaled down and set a background color to fill the emptiness. Would it make sense to you?

Regards!

ragnarlotus avatar Sep 16 '20 14:09 ragnarlotus

Hi, I was going through documentation for so long, to figure out this. since it is an enhancement, is there any workaround, at the present to make this happen.

lohithn4 avatar Nov 30 '20 13:11 lohithn4

Hello!, the only one, would be if you just have both images with exactly the same aspect ratio and filling the empty space with the color you want in the image that is not covering the whole canvas

ragnarlotus avatar Dec 01 '20 11:12 ragnarlotus