beetbox / beetbox/beets

thumbnails: problem getting the picture size

Open
#6,028 0 comments 0 reactions 0 assignees View on GitHub
thumbnails
Dominant language
Python
Stars
15.7k
Forks
2.1k
Avg merge
4d 21h
Merged PRs (30d)
31

Description

### Problem

Running this command in verbose (`-vv`) mode:

```sh
beet -vv thumbnails
```

Led to this problem:

```
user configuration: /home/fer/.config/beets/config.yaml
data directory: /home/fer/.config/beets
plugin paths: []
Loading plugins: convert, embedart, fetchart, lyrics, musicbrainz, thumbnails
artresizer: method is ImageMagick
thumbnails: using ImageMagick to write metadata
thumbnails: using GIO to compute URIs
Sending event: pluginload
library database: /home/fer/media/music/.data/musiclibrary.db
library directory: /home/fer/media/music
Sending event: library_opened
thumbnails: using ImageMagick to write metadata
thumbnails: using GIO to compute URIs
Parsed query: AndQuery([TrueQuery()])
Parsed sort: NullSort()
thumbnails: generating thumbnail for &ME, Black Coffee & Keinemusik - The Rapture Pt.III
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/&ME, Black Coffee & Keinemusik/The Rapture Pt.III/cover.jpg']:
identify: unable to open image '/home/fer/media/music/&ME, Black Coffee & Keinemusik/The Rapture Pt.III/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/&ME, Black Coffee & Keinemusik/The Rapture Pt.III/cover.jpg'
thumbnails: generating thumbnail for Aphex Twin - Selected Ambient Works 85–92
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Aphex Twin/Selected Ambient Works 85–92/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Aphex Twin/Selected Ambient Works 85–92/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Aphex Twin/Selected Ambient Works 85\xe2\x80\x9392/cover.jpg'
thumbnails: generating thumbnail for Baby Gang - Innocente (Deluxe Edition)
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Baby Gang/Innocente (Deluxe Edition)/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Baby Gang/Innocente (Deluxe Edition)/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Baby Gang/Innocente (Deluxe Edition)/cover.jpg'
thumbnails: generating thumbnail for Black Coffee - BlackCoffee
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Black Coffee/BlackCoffee/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Black Coffee/BlackCoffee/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Black Coffee/BlackCoffee/cover.jpg'
thumbnails: generating thumbnail for Black Coffee - Have Another One
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Black Coffee/Have Another One/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Black Coffee/Have Another One/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Black Coffee/Have Another One/cover.jpg'
thumbnails: generating thumbnail for Black Coffee - Home Brewed
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Black Coffee/Home Brewed/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Black Coffee/Home Brewed/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Black Coffee/Home Brewed/cover.jpg'
thumbnails: generating thumbnail for C418 - Minecraft, Volume Alpha
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/C418/Minecraft, Volume Alpha/cover.jpg']:
identify: unable to open image '/home/fer/media/music/C418/Minecraft, Volume Alpha/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/C418/Minecraft, Volume Alpha/cover.jpg'
thumbnails: generating thumbnail for Miles Davis - Kind of Blue
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Miles Davis/Kind of Blue/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Miles Davis/Kind of Blue/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Miles Davis/Kind of Blue/cover.jpg'
thumbnails: generating thumbnail for Freeze Corleone - ADC
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Freeze Corleone/ADC/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Freeze Corleone/ADC/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Freeze Corleone/ADC/cover.jpg'
thumbnails: generating thumbnail for Freeze Corleone - ADC Edition 3
thumbnails: album Freeze Corleone - ADC Edition 3 has no art
thumbnails: generating thumbnail for Marvin Gaye - What’s Going On
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Marvin Gaye/What’s Going On/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Marvin Gaye/What’s Going On/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Marvin Gaye/What\xe2\x80\x99s Going On/cover.jpg'
thumbnails: generating thumbnail for Il Pagante - FOMO
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Il Pagante/FOMO/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Il Pagante/FOMO/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Il Pagante/FOMO/cover.jpg'
thumbnails: generating thumbnail for KPop Demon Hunters Cast, HUNTR/X & Saja Boys - KPop Demon Hunters Soundtrack from the Netflix Film
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/KPop Demon Hunters Cast, HUNTR_X & Saja Boys/KPop Demon Hunters Soundtrack from the Netflix Film/cover.jpg']:
identify: unable to open image '/home/fer/media/music/KPop Demon Hunters Cast, HUNTR_X & Saja Boys/KPop Demon Hunters Soundtrack from the Netflix Film/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/KPop Demon Hunters Cast, HUNTR_X & Saja Boys/KPop Demon Hunters Soundtrack from the Netflix Film/cover.jpg'
thumbnails: generating thumbnail for John Lennon - Imagine
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/John Lennon/Imagine/cover.jpg']:
identify: unable to open image '/home/fer/media/music/John Lennon/Imagine/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/John Lennon/Imagine/cover.jpg'
thumbnails: generating thumbnail for Maes - EN ATTENDANT LVC 2
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Maes/EN ATTENDANT LVC 2/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Maes/EN ATTENDANT LVC 2/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Maes/EN ATTENDANT LVC 2/cover.jpg'
thumbnails: generating thumbnail for Maes - LA VIE CONTINUE (BONUS)
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Maes/LA VIE CONTINUE (BONUS)/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Maes/LA VIE CONTINUE (BONUS)/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Maes/LA VIE CONTINUE (BONUS)/cover.jpg'
thumbnails: generating thumbnail for Frank Ocean - Blonde
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Frank Ocean/Blonde/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Frank Ocean/Blonde/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Frank Ocean/Blonde/cover.jpg'
thumbnails: generating thumbnail for OutKast - Speakerboxxx / The Love Below
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/OutKast/Speakerboxxx _ The Love Below/cover.jpg']:
identify: unable to open image '/home/fer/media/music/OutKast/Speakerboxxx _ The Love Below/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/OutKast/Speakerboxxx _ The Love Below/cover.jpg'
thumbnails: generating thumbnail for Pink Floyd - The Dark Side of the Moon
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Pink Floyd/The Dark Side of the Moon/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Pink Floyd/The Dark Side of the Moon/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Pink Floyd/The Dark Side of the Moon/cover.jpg'
thumbnails: generating thumbnail for Radiohead - A Moon Shaped Pool
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/A Moon Shaped Pool/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/A Moon Shaped Pool/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/A Moon Shaped Pool/cover.jpg'
thumbnails: generating thumbnail for Radiohead - Amnesiac
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/Amnesiac/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/Amnesiac/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/Amnesiac/cover.jpg'
thumbnails: generating thumbnail for Radiohead - Hail to the Thief
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/Hail to the Thief/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/Hail to the Thief/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/Hail to the Thief/cover.jpg'
thumbnails: generating thumbnail for Radiohead - In Rainbows
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/In Rainbows/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/In Rainbows/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/In Rainbows/cover.jpg'
thumbnails: generating thumbnail for Radiohead - Kid A
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/Kid A/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/Kid A/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/Kid A/cover.jpg'
thumbnails: generating thumbnail for Radiohead - OK Computer: OKNOTOK 1997 2017
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/OK Computer_ OKNOTOK 1997 2017/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/OK Computer_ OKNOTOK 1997 2017/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/OK Computer_ OKNOTOK 1997 2017/cover.jpg'
thumbnails: generating thumbnail for Radiohead - Pablo Honey
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/Pablo Honey/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/Pablo Honey/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/Pablo Honey/cover.jpg'
thumbnails: generating thumbnail for Radiohead - The Bends
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/The Bends/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/The Bends/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/The Bends/cover.jpg'
thumbnails: generating thumbnail for Radiohead - The King of Limbs
ImageMagick size query failed
`convert` exited with (status 1) when getting size with command ['identify', '-format', '%w %h', '/home/fer/media/music/Radiohead/The King of Limbs/cover.jpg']:
identify: unable to open image '/home/fer/media/music/Radiohead/The King of Limbs/cover.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
thumbnails: problem getting the picture size for b'/home/fer/media/music/Radiohead/The King of Limbs/cover.jpg'
Sending event: cli_exit```

Here's a link to the music files that trigger the bug (if relevant):

### Setup

* OS: Arch
* Python version: 2.4.0
* beets version: 2.4.0
* Turning off plugins made problem go away (yes/no):

My configuration (output of `beet config`) is:

```yaml
# --------------- Main ---------------

library: ~/media/music/.data/musiclibrary.db

import:
move: yes

# --------------- Plugins ---------------

plugins: musicbrainz lyrics convert thumbnails fetchart embedart
lyrics:
auto: yes
translate:
api_key: REDACTED
from_languages: []
to_language:
dist_thresh: 0.11
force: no
print: no
sources: [lrclib, google, genius]
synced: no
genius_api_key: REDACTED
local: no
google_API_key: REDACTED
google_engine_ID: REDACTED
fallback:
convert:
dest: ~/media/music/itunes/
format: alac
auto: no
formats:
alac96:
command: ffmpeg -i $source -y -vn -acodec alac -ar 96000 $dest
extension: m4a
aac:
command: ffmpeg -i $source -y -vn -acodec aac -aq 1 $dest
extension: m4a
alac:
command: ffmpeg -i $source -y -vn -acodec alac $dest
extension: m4a
flac: ffmpeg -i $source -y -vn -acodec flac $dest
mp3: ffmpeg -i $source -y -vn -aq 2 $dest
opus: ffmpeg -i $source -y -vn -acodec libopus -ab 96k $dest
ogg: ffmpeg -i $source -y -vn -acodec libvorbis -aq 3 $dest
wma: ffmpeg -i $source -y -vn -acodec wmav2 -vn $dest
pretend: no
link: no
hardlink: no
threads: 20
id3v23: inherit
max_bitrate:
auto_keep: no
tmpdir:
quiet: no
embed: yes
paths: {}
no_convert: ''
never_convert_lossy_files: no
copy_album_art: no
album_art_maxwidth: 0
delete_originals: no
playlist:
thumbnails:
dolphin: yes
auto: yes
force: no
fetchart:
auto: yes
sources: filesystem coverart itunes amazon fanarttv
cover_format: png
minwidth: 0
maxwidth: 0
quality: 0
max_filesize: 0
enforce_ratio: no
cautious: no
cover_names:
- cover
- front
- art
- album
- folder
store_source: no
high_resolution: no
deinterlace: no
google_key: REDACTED
google_engine: REDACTED
lastfm_key: REDACTED
fanarttv_key: REDACTED
disabled_plugins: []
musicbrainz:
search_limit: 5
source_weight: 0.5
host: musicbrainz.org
https: no
ratelimit: 1
ratelimit_interval: 1
genres: no
external_ids:
discogs: no
bandcamp: no
spotify: no
deezer: no
tidal: no
extra_tags: []
embedart:
maxwidth: 0
auto: yes
compare_threshold: 0
ifempty: no
remove_art_file: no
quality: 0```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.