oelegeirnaert / photobooth

A flexible photobooth software
GNU Affero General Public License v3.0
4 stars 2 forks source link

turn 90 degrees #14

Open tommy1974 opened 5 years ago

tommy1974 commented 5 years ago

hi,

is it possible to turn the taken pictures on the preview and final composite picture by 90 degrees? I adjusted the layout and images to fit the screen but i can't fix the last issues.

kind regards Tom

oelegeirnaert commented 5 years ago

Hi, sorry for my late reply.

I didn't test it but i guess you need to add the following line after: https://github.com/oelegeirnaert/photobooth/blob/master/photobooth/camera/__init__.py#L171 picture = picture.rotate(90)

...
resized = shot.resize(self._pic_dims.thumbnailSize)
picture.paste(resized, self._pic_dims.thumbnailOffset[i])
picture = picture.rotate(90)

byte_data = BytesIO()
...

Hope this will solve your issue!