You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the image has not been edited the program crashes when trying to save
*** my fix was to check a.img.EditedImage is set
*** I also added case ".jpg" for encoding
fileio.go
// if file has not been edited
if (a.img.EditedImage == nil ){
a.apply()
}
switch writer.URI().Extension() {
case ".jpg":
jpeg.Encode(writer, a.img.EditedImage, nil)
case ".jpeg":
jpeg.Encode(writer, a.img.EditedImage, nil)
case ".png":
The text was updated successfully, but these errors were encountered:
Hello
if the image has not been edited the program crashes when trying to save
*** my fix was to check a.img.EditedImage is set
*** I also added case ".jpg" for encoding
fileio.go
The text was updated successfully, but these errors were encountered: