-
Notifications
You must be signed in to change notification settings - Fork 269
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image producer options #1564
Comments
I think it would be better to do this on the mixer rather than inside the image producer, as other producers would also benefit from this. And that will avoid more cpu heavy work when loading an image, is already is doing more than I would like (converting to 8bit rgb, pre-multiplying alpha) |
If the parameters are implemented in the mixer it could apply to videos as well, not only images? We use the mixer commands a lot for this reason. We got used to it, but yeah those options would come in handy for sure. I'm not sure I understand what fit does, so maybe I'm wrong, but I'd say I'm missing an extra option: play it as is, without filling or fitting into the channel. One example is a 90×90 QR Code into a 1080 channel. Just play it on its original resolution. It that what "fit" does? |
@Sidonai-1 FIT expands/shrinks the image to make it fit on the screen without cropping.
That should be another option also. |
@Julusian to make sure I understand it correctly, this PR adds |
@Julusian if you don't mind, I will try to port your PR to 2.4 |
Yes, that change adds a parameter to the AMCP PLAY/LOAD commands such as Please do! In case its useful, there was a pr for it nrkno#28 and another issue about it over here #673 |
Submitted PR #1566 if anyone wants to try it. The only inconvenient part is that it requires two commands to be run first:
in order for the images to be centered. Otherwise, it works great. |
Description
Currently the image producer will stretch the image to fill the output frame. Sometimes we get images with various sizes and formats that need to be quickly shown preserving the aspect ratio. This has resulted in some unwanted results, such as people being stretched. I know there are mixer commands that can be used for that, but they require calculating image aspect ratio vs channel aspect ratio, and take too long.
It would be very useful to add several parameters to the image producer, that regulate how the image is processed. They would be:
If the parameter is omitted, it defaults to STRETCH, which is the current behavior. The parameters would do the following:
Solution suggestion
It should be fairly simple to implement using
FreeImage_EnlargeCanvas
and I've been meaning to take a stab at it for a while.The text was updated successfully, but these errors were encountered: