photobooth icon indicating copy to clipboard operation
photobooth copied to clipboard

[BUG]: Image frame not working

Open ZaRdoOx opened this issue 1 year ago • 4 comments

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

ZaRdoOx avatar Mar 20 '24 14:03 ZaRdoOx

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

andi34 avatar Mar 20 '24 19:03 andi34

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

ZaRdoOx avatar Mar 21 '24 08:03 ZaRdoOx

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.

stale[bot] avatar May 20 '24 19:05 stale[bot]

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

andi34 avatar Jul 14 '24 09:07 andi34

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

sibr1234 avatar Aug 25 '24 21:08 sibr1234

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 avatar Aug 26 '24 04:08 andi34

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

andi34 avatar Aug 26 '24 04:08 andi34

Screenshot_20240826-064557

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

andi34 avatar Aug 26 '24 04:08 andi34

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

sibr1234 avatar Aug 26 '24 17:08 sibr1234

Screenshot_20240826-202205 Screenshot_20240826-202107

PHP 8.2, frame with and without extension

andi34 avatar Aug 26 '24 18:08 andi34

Same with pho 8.3.10 Screenshot_20240826-202946

andi34 avatar Aug 26 '24 18:08 andi34

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!

sibr1234 avatar Aug 27 '24 18:08 sibr1234