Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

WebcamSubscriber width/height defaults

Avatar

Level 3

If I set the WebcamSubscriber.width = 100 shouldn`t the .height default to 4:3 ratio of my cam and not to a 100x100  square?

2 Replies

Avatar

Employee

No, width and height directly change the visual object's dimensions.

If you want to preserve the aspect ratio you will need to calculated from the initial value of width and height (it could be different than 4/3).

Avatar

Level 3

well I only set WebcamSubscriber.width = 100 and I got a 100x100  square.