Page 1 of 1

column width saving and export JPG extension?

Posted: Thu Jan 12, 2023 2:36 pm
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!

Re: column width saving and export JPG extension?

Posted: Fri Jan 13, 2023 8:42 am
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.

Re: column width saving and export JPG extension?

Posted: Fri Jan 13, 2023 2:21 pm
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.

Re: column width saving and export JPG extension?

Posted: Fri Jan 13, 2023 4:33 pm
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' )

Re: column width saving and export JPG extension?

Posted: Sun Jan 15, 2023 3:42 pm
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

Re: column width saving and export JPG extension?

Posted: Sun Jan 15, 2023 4:15 pm
by jtclipper
Not sure why you have this issue , the server has the new file

Re: column width saving and export JPG extension?

Posted: Tue Jan 17, 2023 4:23 am
by gelat
i got it on a different PC, and it worked. Thanks