Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returned data is not an image. #133

Closed
Tarasovych opened this issue Aug 13, 2018 · 5 comments
Closed

Returned data is not an image. #133

Tarasovych opened this issue Aug 13, 2018 · 5 comments

Comments

@Tarasovych
Copy link

Tarasovych commented Aug 13, 2018

I have two Laravel apps. Both on the same commit state.

First app domain is like foo.bar.example.com, second is bar.example.com. Both served via same web-server and have ssl certificate (if that matters for my issue).

Both apps store images in the same folder, folder has 0755 permission and the same user is an owner.

I have such code:

$this->vcard->addPhoto($this->screenshot);

and it cause some problems.

This:

var_dump($this->screenshot);

returns valid link to an image - I've checked on both sites.

So I can say that addPhoto() always get valid string as an argument.

BUT being on foo.bar.example.com I got Returned data is not an image.. What can be a problem? Thank you!

P. S. I've also tried addPhoto('https://foo.bar.example.com/path/to/image/file.jpg') - same error.

P.P.S This works somehow: addPhoto('https://bar.example.com/path/to/image/file.jpg'), addPhoto(public_path('path/to/image/file.jpg')). Can't understand. Both urls return identical headers when executed in browser.

@nam-co
Copy link

nam-co commented Jan 11, 2023

Hi @Tarasovych were you able to find a solution? I face the same issue, some url works and others don't (I use DO spaces), appreciate any guidance

@Tarasovych
Copy link
Author

@nam-co nope(

@nam-co
Copy link

nam-co commented Mar 6, 2023

@Tarasovych @jeroendesloovere is there an option to turn the image format verification off?

@nam-co
Copy link

nam-co commented Mar 6, 2023

I just got the same error with a simple png: https://s3.showpage.app/showpage/biz/39/pages/99/dario-qpau5.png

@Tarasovych
Copy link
Author

I don't use the library for long, so I can't help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants