IPB

Welcome Guest ( Log In | Register )

4 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> [WS] Google Images Cover Search, cover art only
pone
post Nov 22 2010, 14:43
Post #1


Member


Group: Full Members
Posts: 1571
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



This script searches for cover art with google images.
It stores only the cover art, no other tags are written.

The tags album & artist are used for search input.
Feel free to write comments and suggestions for improvement!


Script Installation & Usage:
1. Download the script
2. Move the file into this folder: %appdata%\Mp3tag\data\sources
(just copy&paste this into windows explorer adress bar)
3. Run the script from Mp3Tag with this button:


How to edit the script ot use Google Advanced Image Search:
(this is optional, only if you want to limit your search)
The scipt searches for all picture, regardless of size and aspect ratio.
But you can customize this:

1. open the script with a text editior (e.g. notepad.exe or wordpad.exe).

2. go to the line:
[IndexUrl]=http://www.google.com/images?q=%s
This is the standard search. By adding certain codes to it, you can make use of Google's Advanced Image Search.

3. Place this after the index url to use advanced search
&tbs=

4. Add the following codes separated by comma to limit your search:
iar:s _ _ _ quadratic pictures only

isz:s _ _ _ small (side length under 400 px)
isz:m _ _ _ medium (side length between 400 and 800 px)
isz:l _ _ _ large (side length over 800 px)
isz:lt,islt:qsvga _ _ _ larger than 400x300
isz:lt,islt:vga _ _ _ larger than 640x480
isz:lt,islt:svga _ _ _ larger than 800x600
isz:lt,islt:xga _ _ _ larger than 1024x768
isz:ex,iszw:500,iszh:500 _ _ _ exact file size (500x500 in this example)

ift:jpg _ _ _ .jpg files only
ift:png _ _ _ .png files only
ift:bmp _ _ _ .bmp files only
ift:gif _ _ _ .gif files only
ift:svg _ _ _ .svg files only

Example:
[IndexUrl]=http://www.google.com/images?q=%s&tbs=iar:s,isz:l,ift:jpg
gives you only quadratic large jpg files

You can also change google.com to google.de or any other country domain ending to get slightly country-specific search results from google.

If you want, you can make more verions of the script by giving them different filenames.


download:

This post has been edited by pone: Aug 12 2012, 21:01
Attached File(s)
Attached File  Google_Images_Cover_Search_1.8.src ( 2.05K ) Number of downloads: 2005
 
Go to the top of the page
 
+Quote Post
pone
post Nov 22 2010, 16:50
Post #2


Member


Group: Full Members
Posts: 1571
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



first update (v 1.1)
The "List of search results" dialog has now a extra column for the filesize.
The Results are now presented in the following way:
filename | website | imagesize (pixel) | filesize (KB)
Go to the top of the page
 
+Quote Post
pone
post Nov 22 2010, 23:50
Post #3


Member


Group: Full Members
Posts: 1571
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



another update on the first day of the script (v 1.2):

I changed the search to prefer %albumartist% for search if present, otherwise %artist% is chosen.

I made some replaces of URL-encodings of some special characters which were not transformed in all cases. In others they were. I don't know why. If you detect more characters/encodings which make problems, let me know.
The encodings I replaced with their coresponding characters are:
%3F -> ?
%3D -> =
%26 -> &
%25 -> %

- see starting post for download -

This post has been edited by pone: Nov 23 2010, 00:04
Go to the top of the page
 
+Quote Post
muctuy
post Jan 22 2011, 02:56
Post #4


Member


Group: Members
Posts: 4
Joined: 22-January 11
Member No.: 13653
Mp3tag Version: 2.46



das plugin funktioniert super! leider ist damit keine automatisierung für mehrere files möglich.

perfekt wärs, wenn mp3tag eine derartige funktion bzw aktion zur autmatisierung von coverimporten über eine bestimmte datenbank (in diesem fall google images) zur verfügung stellt.

This post has been edited by muctuy: Jan 22 2011, 02:57
Go to the top of the page
 
+Quote Post
pone
post Jan 22 2011, 16:03
Post #5


Member


Group: Full Members
Posts: 1571
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



ZITAT(muctuy @ Jan 22 2011, 02:56) *
das plugin funktioniert super! leider ist damit keine automatisierung für mehrere files möglich.

perfekt wärs, wenn mp3tag eine derartige funktion bzw aktion zur autmatisierung von coverimporten über eine bestimmte datenbank (in diesem fall google images) zur verfügung stellt.

you can do all files of one album in one go
Go to the top of the page
 
+Quote Post
muctuy
post Jan 22 2011, 16:27
Post #6


Member


Group: Members
Posts: 4
Joined: 22-January 11
Member No.: 13653
Mp3tag Version: 2.46



i mean hundreds of files of different albums wink.gif

simply automation:

for each file
  • search for cover with google images cover search
  • choose first pic
  • save it
next

by the way: the simple nice tool mp3coverChanger does the full automated cover tagging very well: http://digijay.kilu.de/forum1/viewtopic.php?f=11&t=298. but it uses amzon as source, which acutally is not as good as google.

This post has been edited by muctuy: Jan 22 2011, 16:33
Go to the top of the page
 
+Quote Post
pone
post Jan 22 2011, 16:35
Post #7


Member


Group: Full Members
Posts: 1571
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



ZITAT(muctuy @ Jan 22 2011, 16:27) *
i mean hundreds of files of different albums wink.gif

simply automation:

for each file
  • search for cover with google images cover search
  • choose first pic
  • save it
next

I know, but that is something Mp3tag doesn't offer.
Other programs do that, like Windows Media Player and I think iTunes and WinAmp, but they never get 100% correct covers. Often just covers of different albums with similar titles.

This post has been edited by pone: Jan 22 2011, 16:38
Go to the top of the page
 
+Quote Post
muctuy
post Jan 22 2011, 16:59
Post #8


Member


Group: Members
Posts: 4
Joined: 22-January 11
Member No.: 13653
Mp3tag Version: 2.46



QUOTE (pone @ Jan 22 2011, 16:35) *
I know, but that is something Mp3tag doesn't offer.
Other programs do that, like Windows Media Player and I think iTunes and WinAmp, but they never get 100% correct covers. Often just covers of different albums with similar titles.

hmm.. afaik those tools can do the cover tagging only if the file is currently played. i dont think that they have a full automated cover tagging function - or am i wrong?
Go to the top of the page
 
+Quote Post
pone
post Jan 22 2011, 17:08
Post #9


Member


Group: Full Members
Posts: 1571
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



ZITAT(muctuy @ Jan 22 2011, 16:59) *
hmm.. afaik those tools can do the cover tagging only if the file is currently played. i dont think that they have a full automated cover tagging function - or am i wrong?

I don't know exactly. I've read this about Windows Media Player somewhere. There should be a function which adds coverartwork to the whole library. But in a fixed size which is pretty small I think. But i never tested.
Go to the top of the page
 
+Quote Post
laurin148
post Mar 2 2011, 22:42
Post #10


Member


Group: Members
Posts: 4
Joined: 2-March 11
Member No.: 13934
Mp3tag Version: 2.47



Hey pone,

I got a problem with this source.
A made 2 screens to describe my problem:



In the first screen i searched for a cover for this title in firefox. In the second screen i did the same in mp3tag. But the results of the search were different. Why?
With this problem, its harder for me to find the right cover. (in firefox i found the right cover, but not in mp3tag)

Any suggestions to solve this problem?

EDIT:

I got an idea for tagging the mp3s with covers automatically. The script can search in google images with the tag %artist% - %title% and it can write the first picture into the tag or let the user select the right cover. It would be also great, if you can select a minium size for the cover. 700x700 pixels looks better than 100x100 smile.gif
You can use the extended google images search for the size. Example:

Size: bigger than 400x300
Typ: quadratically

Here The URL for this search with the search parameters if it helps:
http://www.google.de/images?as_q=Nadia+Ali...art=0&uss=1

This post has been edited by laurin148: Mar 2 2011, 23:07
Go to the top of the page
 
+Quote Post
pone
post Mar 3 2011, 02:31
Post #11


Member


Group: Full Members
Posts: 1571
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



The problem of your search was the & character. It cuts everything what comes afterward. I fixed that and added a couple of other replacements of certain characters.

i also thought about limiting the search to certain sizes and aspect ratios. but that will also limit search matches for cover pictures for albums which have not hundreds of pictures in the web. and for more mainstream albums, the first search matches are nearly always good pictures between 300x300 and 700x700.


script updated to v1.3

(over 600 downloads of the last version, wow)
Go to the top of the page
 
+Quote Post
laurin148
post Mar 3 2011, 14:32
Post #12


Member


Group: Members
Posts: 4
Joined: 2-March 11
Member No.: 13934
Mp3tag Version: 2.47



QUOTE (pone @ Mar 3 2011, 02:31) *
The problem of your search was the & character. It cuts everything what comes afterward. I fixed that and added a couple of other replacements of certain characters.

i also thought about limiting the search to certain sizes and aspect ratios. but that will also limit search matches for cover pictures for albums which have not hundreds of pictures in the web. and for more mainstream albums, the first search matches are nearly always good pictures between 300x300 and 700x700.


script updated to v1.3

(over 600 downloads of the last version, wow)

first of all, thanks for updating. But i have one last suggestion:

You can search for quadratically pictures like i discribed here:
http://h-4.abload.de/img/fail3apes.jpg

Then you'll be sure you will find a cover. Its to avoid that you'll find pics which are not the covers, because covers are always quadratically!

And it would be great if i can search the other pages of the google results if its possible, because i've had one titel which only got low resolution (80x80 etc) in the first google page, but in the second a found a good resolution (600x600)

This post has been edited by laurin148: Mar 3 2011, 14:34
Go to the top of the page
 
+Quote Post
DetlevD
post Mar 3 2011, 14:41
Post #13


Member


Group: Full Members
Posts: 4129
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.54



QUOTE (laurin148 @ Mar 3 2011, 14:32) *
... because covers are always quadratically! ...

This opinion might not be realistic.

DD.20110303.1445.CET


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
laurin148
post Mar 3 2011, 14:48
Post #14


Member


Group: Members
Posts: 4
Joined: 2-March 11
Member No.: 13934
Mp3tag Version: 2.47



QUOTE (DetlevD @ Mar 3 2011, 14:41) *
This opinion might not be realistic.

DD.20110303.1445.CET


Hmm every cover I've seen until now had resolutions like 300x300, 700x700 etc and so they are quadratically wink.gif
Go to the top of the page
 
+Quote Post
pone
post Mar 3 2011, 15:04
Post #15


Member


Group: Full Members
Posts: 1571
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



ZITAT(laurin148 @ Mar 3 2011, 14:48) *
Hmm every cover I've seen until now had resolutions like 300x300, 700x700 etc and so they are quadratically wink.gif

not exactly.
many covers, or at least their digital representaions, have aspect ratios like 700x690. i don't know if goolge treats them as quadratic.

and of course, there are other formats:
- Tapes & DVDs are normally not quadratic
- CDs sometimes have a cover which corresponds to the backside of a standard cd case
- CDs can also have non standard cases with different aspect ratios
- mp3s have no standard aspect, e.g. podcasts have often cover pictures which are not quadratic
- for live recordings you will maybe choose a flyer or a poster of the event as cover, which is also rarely quadratic

This post has been edited by pone: Mar 3 2011, 15:06
Go to the top of the page
 
+Quote Post

4 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th May 2013 - 08:49