Skip to content

Classibase image settings

Product images is essential feature of classifieds website. On Classibase classifieds script you can control number of images uploaded per ad, image size and thumbnail size displayed on item page and on listings.

Additionally you can append watermark with your domain name to images in order to drive traffic from users who found images from your website on other places like website, search engine, printed paper, desktop computer or mobile phone.

To edit image settings follow these instructions:

Classibase image settings page. Set allowed image uploads per ad, image dimensions.

  1. Navigate to “Settings” → “Ads” from admin panel
  2. “Image uploads per ad” – set number of images you want to permit to upload per ad. Be aware that number of images selected to upload will slow down upload process. For example if not experienced user uploads 10 images with 1 MB size then it will be 10 MB data to upload to server, which will be slow for general use. So keep this number below 20-30 images. If you want to disable image uploads completely then set this number to 0 (zero). Changing number of uploads will not affect existing ads. For example if you initially permitted to upload 10 images and  then set this to 0 (zero), which disables image uploads. Then existing old ads will still have already uploaded images in them.
  3. “Ad image width” and “Ad image height” — are medium image size used to display on ad item page. Images will fit to this size keeping proportion, they will not be cropped. Resize process executed on the fly so changing this value will change existing image size as well.
  4. “Ad thumbnail width” and “Ad thumbnail height” — are dimensions for thumbnail images. Thumbnail displayed on ad listing page and ad item page. Thumbnails are cropped to exact size defined in these fields.
  5. “Ad image max width” and “Ad image max height” — are dimensions that original images will be stored in your server. It is used as source for creating thumbnail and medium images. Also this image will be used when user clicks to view big image in popup window.  Keep this size lover than 1000 pixels. Small images will not be resized, bigger images will be resized to fit this size.
  6. "Ad image max filesize (KB)" — this option is for old browsers that do not support client side image resize and upload functionality. Maximum size in kilobytes for all images uploaded at once. You can ignore this value and leave default 2000. It will not be used in most cases.
  7. “Image watermark text” — is for setting watermark image at the right bottom corner of uploaded image. Watermark is set on every image upload and cannot be changed later. Changing this value will not affect existing images, it will work for new image uploads only.
    • You can set text value
    • {@VIEWADLINKSHORT} - will add short link to add. Ex: yoursite.com/1223, which will redirect to ad where this image belongs.
    • {@SITENAME} - will display domain name, ex: yoursite.com

Image settings page of classibase. Define image dimensions and watermark text.

Make image upload required

Force users to attach images to their ads by making image field required in classibase settings.

If you want force users to upload images to their ads then there is an additional setting on "Settings" → "Ads" page that will make image field required. So users will be forced to upload image to their ads when posting an ad.

Actions performed on image upload:

  • When user selects image for uploading they are resized (to max size set in settings) before uploading in user browser automatically. Even big images with 5mb+ size can be resized and size will be reduced to around 100kb. Actual image will be resized and uploaded as data and then saved as jpg image file on the server.
  • User can select multiple images at once. For example select 20 images and upload at once.
  • Upload process continues while used inputs other fields like ad title, description, price etc. So user does not have to wait until images finish uploading.
  • Watermark added if it is set in image settings.
  • Final image will be stored as original image and displayed as full size image when user clicks for zooming on image on ad item page.
  • On medium or thumbnail size image request images will be generated by resizing from full size image. These images stored in cache folder. If you clear cache then medium and thumbnail images will be generated on next request.

FAQ:

How to disable image uploads?

Set “Image uploads per ad” value to 0 (zero). Image upload feature will be removed from ad posting page.

How many images are good to allow for ads?

We recommend to keep it around 5-20. If you have a very big website with more than 100k ads then try to keep number of images per ad low like 5-10 images.

With simple calculation 100k ads, all with 10 images will use 100Bb storage on your server. (100k ads * 10 images * 100kb each image = 100GB storage).

What is the recommended maximum image dimension to store in a server?

Image file size is proportional to image dimensions. Bigger image dimension, size in pixels like 1000px × 1000px, bigger file size will be.

On a classifieds website you do not need to store high resolution images. Keeping image size low will allow server to perform resize operations faster, will allow storing more images and will make page load faster.

How to optimize image delivery and bandwidth usage?

Use long browser cache like 1+ year and CDN when possible.

Check server optimization tutorial.

How to clear image cache?

Clear image cache in ClassiBase. Deletes thumbnail and medium size resized images.

Navigate to “Tools” → “Clear cache” page from admin panel and click on “Clear image cache” button. This will delete resized (thumbnail, medium, custom image sizes used in ad widgets etc.) image files. All images will be resized and stored in cache again on each new image request.

When images are resized to different dimensions?

Images resized on first use in frontend or backend. They are not resized when uploaded.

Would like to know where is image folder?

Would like to know which folder is located at the pictures of ads?

— Carlos

Answer:

Ad images are located in /user-content/uploads/adpics/ folder in random subfolder.

--

What is next: