Closed KH404 closed 2 years ago
convert command needs imagemagick, right?
Yeah that's right. I tested it in the cmd and when it worked, for me it was the easiest way to make an "shell_exec". But I assume there is a way better solution xD
Imagemagick doesn't seem to perform that well on the Pi, quite resource hungry compared with GD.
https://www.php.net/manual/de/function.imagerotate.php should be reworked to use the GD way.
Parts to modify:
@KH404 would be nice if you could create a pr. As mentioned by @andi34 we want to use only gd at the moment and there are some other parts which needs some modifications. For example you have to take 8 pics now and not only 4.
Unfortunately for me it is not possible to do these changes. Right now I do not have the time for, because I am going to be a father in the next few days. Maybe I will find the time when the baby won't let me sleep ;)
P.s.: There is no need to take 8 pictures.The four pictures on the left are the same then the four on the right. So if you cut it in half, both stripes are equal. One for the guest and one for e.g. the guest book.
Unfortunately for me it is not possible to do these changes.
That's ok. I thing it's a nice feature, but not urgent.
Right now I do not have the time for, because I am going to be a father in the next few days.
Congratulations :clap:
Reopen as not applied here.
Photobooth v4 includes the new layout https://photoboothproject.github.io/Changelog
Is your feature request related to a problem? Please describe. On my own wedding we had a photobooth which had a 2x4 layout for the collage function. We likes the layout, because with one print you had the pictures twice. The print was cut in half, so you had two picture stripes. One was for the guest book and the other for the guests.
Describe the solution you'd like On my local code I implemented the layout for an older version. I am not into php, so it is not coded in a good way. It worked but the performance was bad. Unfortunately the code files are not matching with the new code structure so I attached the code parts which I implemented for the previous release. Maybe you can take it, improve it and add it as a new feature.
Describe alternatives you've considered If you do not like it, you can also omit the layout.
config.inc.php
$config['collage_layout'] = '2x2'; // possible layouts are 2x2 and 2x4 (row x column)
index.php
'collage_layout' => [ 'type' => 'select', 'name' => 'collage_layout', 'placeholder' => 'collage_layout', 'options' => [ '2x2' => '2x2', '2x4' => '2x4', ], 'value' => $config['collage_layout'] ]
takePic.php