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

Corrupted images causes #33

Open
dennisa opened this issue Jul 6, 2018 · 0 comments
Open

Corrupted images causes #33

dennisa opened this issue Jul 6, 2018 · 0 comments

Comments

@dennisa
Copy link

dennisa commented Jul 6, 2018

When there is an upload error due to network issue or abrupt termination of upload (incomplete/corrupted image), it causes a read error and my app returns a internal server error.

CloudImage->getDimensions() probably should just return a 0x0 dimensions in this case

getimagesize(/Volumes/MainStorage/Development/Projects/htdocs/mmyapp/assets/Uploads/Member/45678/Items/14559942-240C-4542-8C2F-54A5F3DC699C-2.png) Image.php:1009 Image->getDimensions(string) CloudImage.php:87 CloudImage->getDimensions(0) Image.php:1022 Image->getWidth() Image.php:705 Image->isWidth(1200) Image.php:377 Image->ScaleWidth(1200) Image.php:526 Image->SetWidth(1200) ViewableData.php:466 ViewableData->obj(SetWidth,Array,1,,) SSViewer.php:99 SSViewer_Scope->getObj(SetWidth,Array,1,,) SSViewer.php:625 SSViewer_DataPresenter->getObj(SetWidth,Array,1,,) SSViewer.php:119 SSViewer_Scope->obj(SetWidth,Array,1,,) SSViewer.php:619

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

1 participant