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

Prevent copy exception #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bart-webleads
Copy link

When resizing the same file and the requested size is the same as the maximum size, you will get this error:

Uncaught PHP Exception SpoonDirectoryException: "The directory/file (...) couldn't be copied." at spoon/library/spoon/directory/directory.php line 124

When resizing from file1 to file2, and no resize is needed, a file copy is necessary.
But when resizing from file1 to file1, and no resize is needed, the copy function should be skipped.

When resizing the same file and the requested size is the same as the maximum size, you will get this error:

Uncaught PHP Exception SpoonDirectoryException: "The directory/file (...) couldn't be copied." at spoon/library/spoon/directory/directory.php line 124

When resizing from file1 to file2, and no resize is needed, a file copy is necessary.
But when resizing from file1 to file1, and no resize is needed, the copy function should be skipped.
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

Successfully merging this pull request may close these issues.

1 participant