This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 9 - Pages: 1 - Last Post: 6 Sep 25, 00:41 Last Post By: JeffTucker Threads: [ Previous | Next ]
PeterBennett

Posts: 12
Registered: 24-Feb-2021
Tiger - Import Settings - missing Logo file
Posted: 30 Aug 25, 19:46
 
  Click to reply to this thread Reply
When I create a new album with Tiger I import the Settings from an existing album. All settings are import except one.

Settings > Tiger > Site > Top Bar > Logo > My_Logo.jpg

The Settings shows that My_Logo.jpg populates the logo box.

But the file doesn't exist. If I compile the album, the top bar, where the logo should appear displays ?.

If I go back to Settings and manually import My-Logo.jpg, and re-Make album, everything is OK.

My_Logo.jpg should reside in the res folder.

Am I missing a setting.

Thanks,

PeterB
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: Tiger - Import Settings - missing Logo file
Posted: 30 Aug 25, 20:33   in response to: PeterBennett in response to: PeterBennett
 
  Click to reply to this thread Reply
Importing settings does just that, it doesn’t import support files like background images and logos. See the last section at https://jalbum.net/help/en/Import_settings_from_published_or_local_album_projects

Edited by: RobM on 30 Aug 2025, 22:18
If you keep the logo file outside of the project, say in ‘Pictures’ and in Tiger navigate to it, then when you import the settings, and the logo field is populated with that path the album will build with the logo shown. But if you move or delete that logo file it won’t work for new projects and may break existing projects if they are rebuilt - it depends on how the skin handles it.
Laza

Posts: 1,631
Registered: 6-Sep-2005
Re: Tiger - Import Settings - missing Logo file
Posted: 31 Aug 25, 12:46   in response to: PeterBennett in response to: PeterBennett
 
  Click to reply to this thread Reply
This is a poor implementation. Unfortunately, jAlbum does not know which files to import from the other album, besides the skin settings. I'm not sure if we can come up with something better. The only way to resolve this issue is to copy the contents of the old album's "res" folder (Ctrl-Shift-I / res) to the new one.
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: Tiger - Import Settings - missing Logo file
Posted: 31 Aug 25, 13:20   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza wrote:
This is a poor implementation. Unfortunately, jAlbum does not know which files to import from the other album, besides the skin settings. I'm not sure if we can come up with something better. The only way to resolve this issue is to copy the contents of the old album's "res" folder (Ctrl-Shift-I / res) to the new one.
If not checking for the existence of externally stored images like logos, in init or predir, then maybe it would be better to not allow the import of the logo path.
JeffTucker

Posts: 8,099
Registered: 31-Jan-2006
Re: Tiger - Import Settings - missing Logo file
Posted: 31 Aug 25, 14:20   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
It gets much more byzantine than this.

In my skins, I don't use the res directory to store things like logos. I use David's DiskCache() method. This has several advantages.

First, it's invisible to the user, so he doesn't say, "Hey, what's this res thing in my project," and then deletes it.

Second, it cleans up after itself. If the user decides to use a different logo file, the old one isn't then hanging around, getting copied into each album along with the new one. I've seen res folders in the output of Tiger albums that contain the entire history of the user's choices of things like logo and background images!

ETA: Third, cached files survive the deletion of the original. On a subsequent album build, it looks for the original, and if it finds it, it uses it, and replaces the cache copy. If it doesn't find the original, it just uses the cache copy. Handy, if the original is modified or replaced - you don't need to remove it and re-add it to the project.

The disk cache does not, however, get copied to the lifeboat.zip file. I'm thinking it probably should.

What's stored in the project file are the name of the logo file, and the full path to it.

So, when importing, what should be brought in? Of course, that's different if the import is being done from the project file, or from a published album. The project file is more likely to be the user's own project (though he might have grabbed the lifeboat.zip file from the web, and gotten the project file from that - might be his, or someone else's). Importing from a published album might also involve the user's own project, or someone else's. So, the full path to the original logo file might or might not be valid. What gets imported is also modified by what's in the preventCopy entry in skin.properties.

Because of all of this, whichever technique is being used to stash things like logo files, a user is often better off using Duplicate project instead of importing settings. Copy the entire project, delete the album objects in it, and add new ones.
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: Tiger - Import Settings - missing Logo file
Posted: 31 Aug 25, 16:01   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
All of which points to excluding paths, to none album objects, from the import settings routines.
So in the skin.properties file add those settings to ‘preventCopy=’.
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: Tiger - Import Settings - missing Logo file
Posted: 31 Aug 25, 16:06   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Related, for site aware skins, I allow for users to save/load default settings for templates like About.htt and Contact.htt. Either or both of those could be common to every project by a specific user. It saves a lot of copy and paste or manual entry.
PeterBennett

Posts: 12
Registered: 24-Feb-2021
Re: Tiger - Import Settings - missing Logo file
Posted: 1 Sep 25, 15:35   in response to: PeterBennett in response to: PeterBennett
 
  Click to reply to this thread Reply
Thank so much for the analysis. I manage over 30,000 imagers and a large number of projects (Tiger albums). Thanks to RoBM I understand that import Settings from a project imports the skin settings and does not import support files like background images and logos. In our case import is always from a local project and never from a published album. The issue I've had is that although the support file (in this case a logo file) is not imported the name of the file is. This gives the impression that the file is somewhere in the new project. But it's always missing.

Maybe the solution is to not import the file name, resulting in the text box beside Settings > Tiger > Site > Top Bar > Logo being empty or blank. The compiled album would than not have the ? at the top left of the screen.

Just a thought.

Again thank you for the responses. Much appreciated.

PeterB
Laza

Posts: 1,631
Registered: 6-Sep-2005
Re: Tiger - Import Settings - missing Logo file
Posted: 1 Sep 25, 16:11   in response to: PeterBennett in response to: PeterBennett
 
  Click to reply to this thread Reply
Yes, I will remove the import of these settings.
JeffTucker

Posts: 8,099
Registered: 31-Jan-2006
Re: Tiger - Import Settings - missing Logo file
Posted: 6 Sep 25, 00:41   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
In my skins, I don't use the res directory to store things like logos. I use David's DiskCache() method. This has several advantages.

Fourth advantage: with the latest releases of most of my skins, the skin can accept AVIF images for use as logo's, or as images on an info page. jAlbum support for AVIF is irrelevant, since these files are never planted in the image directory, not even in a res folder. They're just quietly copied to the disk cache, regardless of format, and are then fed to the album. All browsers now know what to do with them. :)
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums