id3 icon indicating copy to clipboard operation
id3 copied to clipboard

Suggestion - Extract images

Open stephen147 opened this issue 4 years ago • 5 comments

There's currently a way to remove them.

Would it be possible to add an extraction to the current folder for the embedded images also?

stephen147 avatar Jun 18 '21 08:06 stephen147

The simplistic id3-images program (https://github.com/squell/id3/blob/master/id3-images.c) should do exactly that. make all or make id3-images should build it without problems.

For some reason it was not provided as a binary in the binary distributions in 2015, that should probably change.

squell avatar Jun 19 '21 17:06 squell

Thanks. What version of Visual Studio does that require. I'm only starting out with it.

Does that only support MP3s'? I was hoping for FLAC also.

stephen147 avatar Jun 19 '21 18:06 stephen147

I think the last binary for Windows could compile with both VisualStudio 2010 and 2012. But any version should be fine.

(If you find a reasonable compiler+system combo that doesn't compile id3-images.c, that is something you can open an issue for---it's intended to be reasonably portable.)

Edit I should add that if you compile with with MSVC, you may need to find a dirent.h file (unless newer versions of MSVC include it). I'd think this one works fine: https://github.com/tronkko/dirent/blob/master/include/dirent.h

and you should be able to use nmake /f makefile.nmk to compile (or you can create your own project file in the IDE). And do read the INSTALL file under the section 'building manually', which has this info too :-)

squell avatar Jul 09 '21 19:07 squell

And no, while technically id3 will happily tag FLAC files with ID3 tags and I can imagine some software will read them, that should be discouraged since FLAC has its own metadata format that surely is better.

It's not a bad suggestion to add support for that though.

squell avatar Jul 09 '21 19:07 squell

I'll leave building it as I was hoping for FLAC and MP3 support. Hopefully, someday you can find the time to add this to the program and compile it for use as I'm sure a lot of people would take advantage of it.

Thanks.

stephen147 avatar Aug 31 '21 15:08 stephen147

Thanks, when will this be available in the release downloads?

stephen147 avatar Feb 17 '23 18:02 stephen147

When 0.81 comes out, which will be soon (building it on Windows might take some more time); I finally have some time again to do maintenance on this. :)

squell avatar Jun 30 '23 09:06 squell

Thanks. Will there be a method to retrieve whether or not it has an image so it can be exported? I guess that'll be wrapped in the new export fn?

stephen147 avatar Jun 30 '23 10:06 stephen147

https://github.com/squell/id3/releases/download/0.81/id3-081w.zip should contain a workable id3-images (compiled using a Windows 11 development image, so I'm hoping it also works on older Windows platforms, if not I'll recompile later when I get my hands on a Windows machine again).

There's no check whether the file has an image; you can just run id3-images on a file and it should extract them.

squell avatar Jun 30 '23 14:06 squell