column width saving and export JPG extension?

Main discussion forum
Post Reply
gelat
Newbie
Newbie
Posts: 34
Joined: Sat Nov 20, 2010 10:02 pm

column width saving and export JPG extension?

Post by gelat »

two quick questions - how do I save column widths in the edit grid panel?

export cover art to JPG instead of JPEG extension?

thanks!

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: column width saving and export JPG extension?

Post by jtclipper »

To save the state of the current view of the grid :
Right click on the header then select Presets...the current one will be highlighted for you
Now click replace and then save

To export using a different file extension you have to use a script because the extension is automatically filled from the mime type of the underlying album art
An example script could be something like that

Code: Select all

Program SavePictureToFile;

var
  i: integer;
begin
  if not tg_init then exit;

  i := 1;
  sys_SetStatusText( 2, IntToStr( tg_GetRowCount ) );

  repeat
    tg_loadFile;
    sys_SetStatusText( 1, IntToStr( i ) );
    sys_SetStatusText( 3, gTag.Filename );
    gTag.SavePicture( 0, ExtractFilePath( gTag.Filename ) + gTag.Album  + '.jpg' )
    i := i + 1;
  until not tg_skip;
 end.

gelat
Newbie
Newbie
Posts: 34
Joined: Sat Nov 20, 2010 10:02 pm

Re: column width saving and export JPG extension?

Post by gelat »

I ran the script and it saves the picture with the filename but the extension is still JPEG no matter what I enter.

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: column width saving and export JPG extension?

Post by jtclipper »

I uploaded a new beta that handles this issue you only need to change the script a bit

Code: Select all

//instead of
gTag.SavePicture( 0, ExtractFilePath( gTag.Filename ) + gTag.Album  + '.jpeg' )
//use this
gTag.SavePictureCustom( 0, ExtractFilePath( gTag.Filename ) + gTag.Album  + '.jpeg' )

gelat
Newbie
Newbie
Posts: 34
Joined: Sat Nov 20, 2010 10:02 pm

Re: column width saving and export JPG extension?

Post by gelat »

I got the latest beta, and even though you posted updated on Jan 13, it's still a Sep 2022 EXE and doesn't recognize the SavePictureCustom procedure

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: column width saving and export JPG extension?

Post by jtclipper »

Not sure why you have this issue , the server has the new file

gelat
Newbie
Newbie
Posts: 34
Joined: Sat Nov 20, 2010 10:02 pm

Re: column width saving and export JPG extension?

Post by gelat »

i got it on a different PC, and it worked. Thanks

Post Reply