Store
Community Documentation

v3 Knowledgebase

About thumbnail sizes in the site

I'm sure you have noticed that phpFox uses various thumbnails along the site. For example, when you are checking the photos in the what's new section, or when you are browsing the photos within an album.

But, how can I set what thumbnails I want? What if I want to create a block with thumbnails using a different size that does not currently exist?

Well, there is a list of sizes into the AdminCP, that phpFox uses by default.

Note that all these sizes are used along the site, so we don't recommend removing any of those sizes, unless you edit the templates to use other thumbnail sizes (known as "img suffix"), but that's matter for other article.

To access the list of thumbnail sizes for the photo section, log into your AdminCP and go to:
Settings >> System Settings >> Module Settings >> Photo

Here, you will see the the option "Photo Image Sizes", with its respective list of thumbnails.

You can add more sizes in case you need a new size, using the add button below, or remove sizes that you don't need using the remove button next to the size.

After add a size in the setting "Photo Image Sizes", you need to update the existent thumbnails in:
Tools >> Maintenance >> Counters >> Update Photo Thumbnails >> Update


The same applies for the user profile pictures. Along the site, you will see different thumbnails for the users. In case you want to add or remove more sizes, log into your AdminCP and go to:
Settings >> System Settings >> Module Settings >> User


After add a size in the setting "User Pic Sizes" you need to update the existent profile pictures in:
Tools >> Maintenance >> Counters >> Update Profile Photos >> Update


Remember: all sizes are used by phpFox along the site. Remove a size only if you have edited your templates to not use that size any more

Final note: Please keep on mind phpFox does not use the original file for two reasons:
  • If the image is very big, it could break the layout if it is not resized through HTML or CSS.
  • If the image is very big in KB/MB, loading an image may waste bandwidth unnecessarily, besides it will last more time to load.

Instead, phpFox uses the thickbox window to show the original file, when you click on the image.

That's the reason why the GD library with PNG/GIF/JPEG support is a server requirement, in order to allow phpFox to create this set of thumbnails.