 Hello and welcome. Today, we're going to be looking at a program called fGallery, which is a simple program for generating static HTML image galleries, which is great for throwing up on your web server to share images. It's fairly simple but looks nice and has a few nice features without getting too complicated. It will probably be in your repository if you're on a Debian based system, you know, Ubuntu, MxLinux, Linux Mint, or Debian as I am. You should be able to sudo apt install fGallery. I already have it installed so I'm not going to go through that again. I am in the directory right now with a couple images from a previous tutorial. So let's go ahead and just run this. So you will need a web server to throw us on, but of course that's very easy to set up on your Linux machine. There's many different ways to do it with Python or Apache if you're really going to do it, or Busybox has an HPD in it. There's a whole bunch of them, or an actual web server. It's nice because this is a command line program so you can automate stuff to generate this stuff in a cron job or however you want for your web server. But let's go ahead and just run it. I'm going to say fGallery. I'm going to say look at the current directory. So dot is the current directory, but I can give it a path to a full directory if I want. And then I want the output path, which my web server is linked to my home directory, www, and I'm just going to say tt, just because that's the directory I made. So I'm going to go ahead and run that. It'll take a few seconds here. It's going to make some thumbnails, some smaller size of this, and also copy over the originals. So now that we did that, I can go here. Here's my web server. I'm looking at my local host, but of course I can give the full URL to my web server wherever I've placed this. I can refresh this, and here we go with the gallery. Let me make this full screen. You can see the images. I can go through them with my mouse here. I can also click this arrow here. I can use the arrows left and right to move through them, and it looks nice. It's very simple to share. And then up here it tells you the date of the image, and there's a button here to download. You click that and it will give you a zip file with the full resolution of all those images. We'll talk about that more in a moment. Let's go back to the shell here, and let's just type in f-gallery, and it will give you a few options here. I'm going to go ahead and make that full screen. So you're going to have verbose output, verbose output, slim output, which does not copy the originals and does not give you the download option. So if you want a smaller gallery, you can ignore those full resolutions, because your full resolution could be big, so it depends. Do you want to have the full resolutions available for people to download? So let me look at that real quick. So I'm going to say dash u, du dash, I always get du and df mixed up. So my current directory, which just has these images, are 4.5 megabytes. But if I run the same thing on my home directory, www, forward slash tt, you can see that it's 7 megabytes, because it's got that 4.5 megabytes of the original images. But then it also has, you know, the HTML script, the thumbnails, and the resized images. So it's kind of large. It's larger than the original. But we can adjust this by going back and again running f gallery here. You can see that we have this dash s for slim option. Let me run the same command rear-end before. So again, f gallery, again, dot is just saying the current directory. You can also give a path to any directory where your images are this, but I'm also going to give it the dash s option. It's going to process through those. Now real quick, if I come up here and run this duh command again, again, h is just human readable. It's telling me it's actually less than the original because it made 2.6 megabytes worth of files resizing the images, but we don't have that 4.5 megabytes of the original. Coming back here, if I was to refresh the gallery now, you know, as far as the gallery goes, it looks the same. I can go through, but you'll notice that the download option is gone. So it didn't copy over the original, so it doesn't give you that full download album. All depends on what you want. Coming back here, let's just look at some of these options again for f gallery. And so there's a few other things include individual originals, do not auto-itate, time sort, reverse the album. I mean, most of these are pretty self-explanatory. I haven't played with a lot of them because I haven't had a need to. There are options here to set the maximum full image size and thumbnail size, minimum thumbnail size. You can also adjust the quality, but that's pretty much it. Then you can also specify a location. I guess there you could have an index button. Let me actually try that. I have not tried that. So if I run f gallery on this directory, slim, so it doesn't have the originals in there. If I do this, I haven't tried this. Let's just see what happens here. Again, by default, it will override a directory. Like we already had one there. It overwrote it without asking. So be aware of that. Don't accidentally override anything. Come here and I'll refresh. Okay. So it had this little arrow here. So we have our gallery. Boom, boom, boom, boom. I can skip through them. It tells me the date and time of each image. I can click this back arrow and theoretically. Yep. It brings me to my website. So that's neat. So you can have a home page set in your gallery as well. One more thing that I want to look at here is the dash f option. I think it is. Yes. Improve thumbnail detection. So in a previous video, I talked about a program called face detect. So sudo apt install face detect. If you haven't already installed it, if that is installed, you can use this dash f option. And what that does is when it crops, if it crops your thumbnails, it will use face detection to make sure it crops where the face is so that, you know, if you have like a portrait photo, it's not cropping on someone's chest. It will try to find their face and crop the thumbnails appropriately. I haven't played around with that too much. I mean, I can add that to our command here. Let's do that again. And so I should just be able to say dash f. Again, it's going to override my current directory without asking. So be aware of that once that is complete. I don't think I don't know if it's going to my thumbnails aren't being real crop because they're all normal sizes. If it's cropping, it's probably because you have not a standard, you know, image width. But theoretically, the face detect thing should crop so that it centers the thumbnails as best possible around a face in the image. So there's that option. So last thing we have to do is just, you know, to look at the directory. What does it create? So as you can see, it creates a few folders where it puts images, thumbnails, blurs. I'm assuming it's just the background, you know, a couple images for the icons. But then it just, it has some JavaScript, CSS and HTML, but it's, you know, not using server side stuff. So there's no server side script. It's just generating all this. And it's really nice if you needed to set up a quick little gallery on your website. This is a pretty simple and fast way to generate one. Again, it's called fGallery. It should probably be in your repositories. You have to show fGallery. We'll give a description on it. And usually, here is the homepage to the project if you wanted to go check that out in the description and whatnot. So yeah, thank you for watching. Please visit filmsbychrist.com. That's Chris the K. There should be a link in the description. If you enjoyed my video, be sure to like, share, subscribe, comment, all that good stuff. And if you want to support the site financially, you can support by going to patreon.com. There's a link to that in the description or a link to my website, filmsbychrist.com. Again, you can go there and search for all my videos. But there's also a link at the top to the support. And there, it'll bring you to two options. Currently, you can support me through PayPal or Patreon. The links will be there. I do thank you for watching. And as always, I hope that you have a great day.