sunshineplan

Results 17 comments of sunshineplan

Hi @SR-G, Thank you for reporting this issue and providing detailed information about the panic. After reviewing the code, it appears the panic is caused by a `nil` `src` image...

@SR-G. Thanks for the feedback. To address your concern about the panic in `imgconv.Resize` when `src` is `nil`, I’ve reconsidered but still believe that adding a nil check to return...

@SR-G, Looking at your description and the panic, one common reason for this could be an unchecked error when loading the image with `imgconv.Open(file)`. ```go src, err := imgconv.Open(file) destImage...

@SR-G, thanks for clarifying that you're checking the error from `imgconv.Open()` and for explaining the code snippet was simplified. I understand you're handling the error, but to better diagnose why...

@SR-G, From what you've described, it sounds like `imgconv.Open` is succeeding (no error), but returning a `nil` `src`, which then causes the panic in `Resize` when trying to access `img.Bounds()`....

What I hope is that when calling recordHistory, the outputContents being recorded should already have its Parts merged — similar to how generative-ai-go handled it. This way, downstream consumers of...