Skip to main content

Topic: Embed relative path of picture/cover which is on the local filesystem? (Read 1748 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • k_sze
  • [*]
Embed relative path of picture/cover which is on the local filesystem?
Hello,

The man page for metaflac says that it is possible to embed the URL to a cover on the Internet, without actually fetching it and embedding the picture data into the FLAC file. Is it possible to do the same thing for a cover on the local filesystem, by embedded the relative path? If so, how shall I compose the path string? Any example? I assume it needs to begin with 'file:///', but I suck at understanding RFCs and I haven't really figured out whether the RFCs mean that relative paths are allowed.

Embed relative path of picture/cover which is on the local filesystem?
Reply #1
Hello,

The man page for metaflac says that it is possible to embed the URL to a cover on the Internet, without actually fetching it and embedding the picture data into the FLAC file. Is it possible to do the same thing for a cover on the local filesystem, by embedded the relative path? If so, how shall I compose the path string? Any example? I assume it needs to begin with 'file:///', but I suck at understanding RFCs and I haven't really figured out whether the RFCs mean that relative paths are allowed.

'file:///' is just a shortcut for 'file://localhost/' so I don't think that gives you any way to get a relative path.

Don't know if it would work in this case but a relative url usually leaves out the protocol, so "cover.jpg" in the same folder would just be "cover.jpg", "front.jpg" in a "covers" folder below would be "covers/front.jpg", "album.jpg" in an "artist" folder above would be "../album.jpg", etc.