thephpleague / color-extractor

Extract colors from an image like a human would do.
thephpleague.com
MIT License
1.3k stars 159 forks source link

Error on Ubuntu 22.04 and OpenSSL 3.0.2 #75

Closed vinprom1 closed 2 years ago

vinprom1 commented 2 years ago

file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000126:SSL routines::unexpected eof while reading

SSL routines::unexpected eof while reading at Palette.php:55

colinodell commented 2 years ago

Unfortunately this won't be something caused by this library. If I had to take a guess:

  1. Maybe OpenSSL has a bug, or PHP doesn't like that version
  2. The server you're connecting to isn't properly configured

You're welcome to try the new curl-based fromUrl() method in the upcoming 0.4.0 release, but I can't guarantee it'll work there because this issue is happening outside of this library.