PhotoboothProject / photobooth

OpenSource Photobooth Webinterface
https://photoboothproject.github.io
MIT License
287 stars 60 forks source link

[BUG]: Image frame not working #642

Open ZaRdoOx opened 5 months ago

ZaRdoOx commented 5 months ago

Describe the bug

when i select take picture with frame it automatically reboot the photobooth but the path of the frame is correct and im using the release 4.4.0

Steps to reproduce the behavior

  1. click take pic with frame
  2. take picture
  3. photobooth error

Expected behavior

when i select take picture with frame it automatically reboot the photobooth but the path of the frame is correct and im using the release 4.4.0

Photobooth Version

4.4.0

Browser and browser version

chrome and firefox

Operating System

windows 11

Did it work before?

No

Latest working version

No response

Additional context

No response

andi34 commented 5 months ago

More information about your setup needed. OS Photobooth installed on? PHP version?

ZaRdoOx commented 5 months ago

More information about your setup needed. OS Photobooth installed on? PHP version?

Hello !

PHP Version 8.2.13

Apache 2.4

OS : Windows 11

I'am using a Wampserver to run the photobooth

error.log but no error that mean frame isn't working

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

andi34 commented 1 month ago

Still need to look at. Busy in real life currently.

sibr1234 commented 3 days ago

For me adding image frames doesn't work either. In the log i found the following: Error ["Can't create GD resource.","Failed to create frame from image."] This leads me to image.php and the function call imagcreatetofromstring(). Unfortunately i never did anything with php until now and don't know how to debug... Thanks for helping

andi34 commented 2 days ago

How does your config look like? Until v4.4.1 frame needed to be a full path while on latest development version it must be placed inside the Webserver. Example until v4.4.1

/var/www/html/resources/img/frames/frame.png

Example on latest development version:

/resources/img/frames/frame.png
andi34 commented 2 days ago

And if it's failing with Can't create GD resource there might be something wrong with your image file.

andi34 commented 2 days ago

Screenshot_20240826-064557

At least on Linux I also can't confirm a bug on v4.4 0/v4.4.1

sibr1234 commented 2 days ago

I am running on RPI5 with 8 Gb RAM. Installed using the install-photobooth script (version 4.99). PHP version is 8.3.10. I tried it with the demo image and one of the provided frames in the webserver directory

andi34 commented 2 days ago

Screenshot_20240826-202205 Screenshot_20240826-202107

PHP 8.2, frame with and without extension

andi34 commented 2 days ago

Same with pho 8.3.10 Screenshot_20240826-202946

sibr1234 commented 1 day ago

I did a clean reinstall and now it works perfectly. Unfortunately i cannot replicate what the problem was. Thanks for your help! Appreciate it a lot!