Skip to content

Failed to upload an image on warnings. #9

Description

@xbot

When the picgo-plugin-avif plugin is added, there is a warning while uploading images:

❯ picgo u
[PicGo INFO]: Before transform
[PicGo INFO]: beforeTransformPlugins: avif running
[PicGo INFO]: Transforming... Current transformer is [path]
[PicGo WARN]: can't get /Users/USER/.picgo/picgo-clipboard-images/20250830165709085.avif's image size
[PicGo WARN]: fallback to 200 * 200
[PicGo INFO]: Before upload
[PicGo INFO]: Uploading... Current uploader is [github]
[PicGo INFO]: afterUploadPlugins: avif running
[PicGo SUCCESS]:
https://raw.githubusercontent.com/USER/REPO/master/blog/20250830165709085.avif

But the image is uploaded successfully.

nvim-picgo always fail when this warning is met:

local stop_jobs_message = {
    "%[PicGo WARN%]: can't get",
    -- Well, I did forget the full command for these 2 strings, but this will also match
    -- just doesn't look pretty ..
    "%[PicGo ERROR%]",
    "does not exist",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions