Closed Esoriak closed 2 years ago
Hello @Esoriak,
Thanks for opening the issue! Sorry I don't understand 100% your problem yet.
The source is still existing but sometimes the function does not execute and returns an error 'Can't resize the image', when the maxwidth or maxheight are at 0.
When you say that maxWidth or maxHeight are at 0, you mean that you are calling the function like that : createResizedImage("some path", 0, 200, ...
? And this is when you have your bug right ?
Do you have any particular reason why would you like resize an image with either maxwidth=0 or maxheight=0 ?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed. Thank you for your contributions.
Hi,
We use this package to resize an image before sending it to a visual search engine.
The source is still existing but sometimes the function does not execute and returns an error 'Can't resize the image', when the maxwidth or maxheight are at 0.
Is there a reason why these variables are at 0 then that the source of the image seems ok? Could it be from a corrupted link, a cache problem, or bad connection ? We tried to modify the input variables to see when an error occurs. When the source is not good (ex: empty string), when the width or height are at 0, there is no output. Impossible to go back further and find out what is causing a problem on these 3 parameters. Do you have any ideas ?
This my code :