Jump to content

batch convert fanart to thumb


Swynol

Recommended Posts

Swynol

Is there anyway to batch copy fanart and name it thumb

 

some of my TV series and films dont have thumb files which is what covertart uses. i could go through all my 1500 films and upload the fanart to the thumb slot but this is going to take ages. 

 

any quick way? 

 

 

Link to comment
Share on other sites

Swynol

just double checked in emby now, sometimes its called thumb.jpg other times its called landscape.jpg

 

the onesi want to copy are usually called fanart.jpg and i want to copy it then rename it to thumb.jpg or landscape.jpg

 

because each jpg is in a folder which is the Movie name, i havent got the skills to create a bat file which checks to see if thumb or landscape exists if not copies fanart.jpg and then renames it to thumbs or landscape.

Link to comment
Share on other sites

Swynol

just incase it doesnt make sense.

 

i need to create these thumb files from the backdrop

 

Untitled1_zpsr0qkn0dn.jpg

Edited by Swynol
Link to comment
Share on other sites

chef

Okay. It looks like you want to make a copy of the backdrop.jpg (landscape image) and call it thumb.jpg.

 

Thumb jpegs are smaller and have a different ratio in sizing.

 

I am at work right now, but I can make you a tool which copies and resizes the backdrop. Utilities such as this, is where I seem to do my best coding.

 

It will be late though :)

Edited by chef
Link to comment
Share on other sites

Swynol

The resizing doesn't matter. The example above I used an image from Google as the thumb. Most other thumbs I think are the same ratio and res.

In my Emby they aren't always called backdrop, more often they are called fanart.jpg or landscape.jpg

No rush chef, I was just wondering if Emby or covert art had something built in to do it or if anyone has overcome the problem before. A nice little tool to do it will be great plus might be worth making it a plugin for Emby

Edited by Swynol
Link to comment
Share on other sites

  • 2 months later...

try this http://www.advancedrenamer.com utility(freeware). it can do what you need and a whole lot more.. takes a bit of getting used to, but once you get the general idea, it is very easy..

 

 

Using advanced renamer (AR)

Set batchmode to copy

Click on folder panel

Drag your movie directory over

type backdrop.jpg in the filename mask

For method, use replace and configure to replace backdrop with thumb

Leave the name collision rule set for "Fail". This will ensure only thumbs are created where you need them

The above method, will preserve the thumbs you already have and create new where you  need them

You may have to run it again if you have sub folders with fanart.jpg..

 

In addition to the above, you could use Photoshop (or the freeware program "paint.net") to put a logo into those newly created thumbs..

Edited by ronvp
Link to comment
Share on other sites

chef

Totally swayed from my cross-hairs... Sorry.

 

I will write something tonight if you decided not to use renamer.

 

Do you want a plugin or can it be a standalone app?

  • Like 2
Link to comment
Share on other sites

Totally swayed from my cross-hairs... Sorry.

 

I will write something tonight if you decided not to use renamer.

 

Do you want a plugin or can it be a standalone app?

@@chef, Maybe this is something where coverart could help.. it could  maybe generate a thumb where it is missing and overlay a logo when present.. I will post a feature request in coverart..

Link to comment
Share on other sites

chef

@@chef, Maybe this is something where coverart could help.. it could maybe generate a thumb where it is missing and overlay a logo when present.. I will post a feature request in coverart..

That is a great idea. I like the logo overlay. Probably easy to implement u to cover art.

Link to comment
Share on other sites

chef

I'll try a plugin,

 

1. search for folders which don't contain thumb.jpg.

 

2.Using the API: Collect the backdrop image from the media item.

3. I will use imagemagik like the cover art plugin to resize the backdrop to thumb size (to save space) and place the logo as an overlay in the bottom corner.

 

It probably won't be to customizable at first. It will probably just grab the first backdrop in the folder, but if it works then it could probably show a list of backdrops to choose from.

  • Like 2
Link to comment
Share on other sites

Koleckai Silvestri

Thumb jpegs are smaller and have a different ratio in sizing.

 

 

They don't have to. I use a variety of 1920 X 1080 and 1280 X 720 resolutions from my images. I just let the Emby server resize them so I don't have to worry about it.

  • Like 1
Link to comment
Share on other sites

I'll try a plugin,

 

1. search for folders which don't contain thumb.jpg.

 

2.Using the API: Collect the backdrop image from the media item.

3. I will use imagemagik like the cover art plugin to resize the backdrop to thumb size (to save space) and place the logo as an overlay in the bottom corner.

 

It probably won't be to customizable at first. It will probably just grab the first backdrop in the folder, but if it works then it could probably show a list of backdrops to choose from.

 

 

That just sounds like a utility - which is fine - but if you really want to do this as a plug-in and make it work with the system without the user having to do something, all you have to do is implement an image provider that provides thumb images for items that don't already have them.  Make sure to give the provider a low priority.

Link to comment
Share on other sites

chef

That just sounds like a utility - which is fine - but if you really want to do this as a plug-in and make it work with the system without the user having to do something, all you have to do is implement an image provider that provides thumb images for items that don't already have them. Make sure to give the provider a low priority.

I get ya...

 

Fanart does have a large repitoir of thumb images. I wonder if some of the thumbs missing from certain collections are rare-r movies (ones that don't fit into the "top fan favorites")

 

In that case perhaps a utility would be better suited for this, and not have a plugin, but something standalone, with the same outline.

Link to comment
Share on other sites

chef

Super close to finishing this. I just have to resize the logo when the graphics overlay it on the backdrop.

 

I actually had a bunch of missing thumb images too, and didn't even realize it until I built the utility.

Link to comment
Share on other sites

shorty1483

ThumbMaker crashes on my W7 x86 when starting. Net Framework is installed.

  Problemereignisname:	CLR20r3
  Problemsignatur 01:	Thumb Maker.exe
  Problemsignatur 02:	1.0.0.0
  Problemsignatur 03:	55c965c2
  Problemsignatur 04:	Thumb Maker
  Problemsignatur 05:	1.0.0.0
  Problemsignatur 06:	55c965c2
  Problemsignatur 07:	15
  Problemsignatur 08:	ea
  Problemsignatur 09:	System.InvalidOperationException
  Betriebsystemversion:	6.1.7601.2.1.0.256.4
  Gebietsschema-ID:	1031
  Zusatzinformation 1:	0a9e
  Zusatzinformation 2:	0a9e372d3b4ad19135b953a78882e789
  Zusatzinformation 3:	0a9e
  Zusatzinformation 4:	0a9e372d3b4ad19135b953a78882e789
Edited by shorty1483
Link to comment
Share on other sites

Happy2Play

Same results

Version=1

EventType=CLR20r3

EventTime=130837509943815703

ReportType=2

Consent=1

UploadTime=130837509944977813

ReportIdentifier=e5254555-3ff8-11e5-b2d7-001060ed203a

IntegratorReportIdentifier=e5254554-3ff8-11e5-b2d7-001060ed203a

WOW64=1

Response.BucketId=41303659

Response.BucketTable=30

Response.type=4

Sig[0].Name=Problem Signature 01

Sig[0].Value=Thumb Maker.exe

Sig[1].Name=Problem Signature 02

Sig[1].Value=1.0.0.0

Sig[2].Name=Problem Signature 03

Sig[2].Value=55c965c2

Sig[3].Name=Problem Signature 04

Sig[3].Value=Thumb Maker

Sig[4].Name=Problem Signature 05

Sig[4].Value=1.0.0.0

Sig[5].Name=Problem Signature 06

Sig[5].Value=55c965c2

Sig[6].Name=Problem Signature 07

Sig[6].Value=15

Sig[7].Name=Problem Signature 08

Sig[7].Value=ea

Sig[8].Name=Problem Signature 09

Sig[8].Value=System.InvalidOperationException

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.1.7601.2.1.0.256.1

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=1033

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=0a9e

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=0a9e372d3b4ad19135b953a78882e789

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=0a9e

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=0a9e372d3b4ad19135b953a78882e789

UI[2]=C:\Users\user\Desktop\Thumb Maker.exe

UI[3]=ThumbMaker has stopped working

UI[4]=Windows can check online for a solution to the problem.

UI[5]=Check online for a solution and close the program

UI[6]=Check online for a solution later and close the program

UI[7]=Close the program

LoadedModule[0]=C:\Users\user\Desktop\Thumb Maker.exe

LoadedModule[1]=C:\Windows\SysWOW64\ntdll.dll

LoadedModule[2]=C:\Windows\SYSTEM32\MSCOREE.DLL

LoadedModule[3]=C:\Windows\syswow64\KERNEL32.dll

LoadedModule[4]=C:\Windows\syswow64\KERNELBASE.dll

LoadedModule[5]=C:\Windows\syswow64\ADVAPI32.dll

LoadedModule[6]=C:\Windows\syswow64\msvcrt.dll

LoadedModule[7]=C:\Windows\SysWOW64\sechost.dll

LoadedModule[8]=C:\Windows\syswow64\RPCRT4.dll

LoadedModule[9]=C:\Windows\syswow64\SspiCli.dll

LoadedModule[10]=C:\Windows\syswow64\CRYPTBASE.dll

LoadedModule[11]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll

LoadedModule[12]=C:\Windows\syswow64\SHLWAPI.dll

LoadedModule[13]=C:\Windows\syswow64\GDI32.dll

LoadedModule[14]=C:\Windows\syswow64\USER32.dll

LoadedModule[15]=C:\Windows\syswow64\LPK.dll

LoadedModule[16]=C:\Windows\syswow64\USP10.dll

LoadedModule[17]=C:\Windows\system32\IMM32.DLL

LoadedModule[18]=C:\Windows\syswow64\MSCTF.dll

LoadedModule[19]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll

LoadedModule[20]=C:\Windows\system32\MSVCR120_CLR0400.dll

LoadedModule[21]=C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\66a936efa8a1f3afbf370dfe101b2394\mscorlib.ni.dll

LoadedModule[22]=C:\Windows\syswow64\ole32.dll

LoadedModule[23]=C:\Windows\system32\uxtheme.dll

LoadedModule[24]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System\d2138757ab295b0915156dda2b2d2fd0\System.ni.dll

LoadedModule[25]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Core\f1beb7a13590d2dbc343e1ce1760a730\System.Core.ni.dll

LoadedModule[26]=C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.V9921e851#\2a53f65332543bcdad838b811f7c0994\Microsoft.VisualBasic.ni.dll

LoadedModule[27]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll

LoadedModule[28]=C:\Windows\syswow64\OLEAUT32.dll

LoadedModule[29]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Drawing\a336ca17f2bf3318ccbed93fa72452ee\System.Drawing.ni.dll

LoadedModule[30]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\8e77338d6722cb9945f7b960ee826a39\System.Windows.Forms.ni.dll

LoadedModule[31]=C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18837_none_ec86b8d6858ec0bc\comctl32.dll

LoadedModule[32]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll

LoadedModule[33]=C:\Windows\system32\dwmapi.dll

LoadedModule[34]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runt73a1fc9d#\ff66873e0ca981d7c221d8ce1b91b91c\System.Runtime.Remoting.ni.dll

LoadedModule[35]=C:\Windows\system32\VERSION.dll

LoadedModule[36]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll

State[0].Key=Transport.DoneStage1

State[0].Value=1

State[1].Key=DataRequest

State[1].Value=iData=1/nDumpFile=//Upload//iCab//122-92524fd197664b6abb804bb895af7bf5-78ad8e7dec3cbe3c84ec3ea1ad14e336-5-128890322539-CLR20r3-6-1-7601-2.cab/nDumpServer=watson.microsoft.com/nResponseServer=watson.microsoft.com/nResponseURL=//dw//GenericFour.asp?iBucket=128890322539&szCab=92524fd197664b6abb804bb895af7bf5.cab&EventType=CLR20r3&BucketHash=78ad8e7dec3cbe3c84ec3ea1ad14e336&MID=A766A3B2-0AFF-4BFF-8704-6C6D6CE29D0D/nBucket=41303659/nBucketTable=30/nResponse=1/n

FriendlyEventName=Stopped working

ConsentKey=CLR20r3

AppName=ThumbMaker

AppPath=C:\Users\user\Desktop\Thumb Maker.exe

Link to comment
Share on other sites

chef

Or, crap! I only coded to authenticate users with passwords.

 

I'll fix it up. I got to excited...

Edited by chef
  • Like 1
Link to comment
Share on other sites

FrostByte

Nice, seems to be working.  Looking forward to when it saves images

 

Edit: I did get it to error with the parameter address being null.  Also, noticed a couple images where the text ran off the side of the thumb.

 

Edit: May have found another error.  Just did a search of my TV series and it never finished searching (I only have about 10 series).  Noticed that all my series have thumbs, so wondering if it never finishes if it doesn't find anything?

Edited by FrostByte
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...