Fallback to original images #522
                  
                    
                      roberto-meaningfulgigs
                    
                  
                
                  started this conversation in
                Ideas
              
            Replies: 1 comment 1 reply
-
| @roberto-meaningfulgigs This is an interesting idea. There may be some occasions where returning the original image on an error may not be appropriate. An example might be a content check with a blur edit. What to return may depend on the cause of the error and what operations were in the request. We will discuss this and let you know. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I've been using this project as our image resizer tool and one issue I sometimes have is the JSON error response for some bad conversion, unsupported image by sharp or something like this, and I don't want to show this error for enduser.
I see the fallback default image, but what I need is to just return the original image (or file) and log this error for ourselves - so user still have access to the file and we don't show broken images.
I did this change in my fork and I'm already using it, let me know if this idea makes sense for a pull request.
Beta Was this translation helpful? Give feedback.
All reactions