How to handle large number of images in a post?

I have a load of images – up to 16 per post plus a thumbnail and a logo. I want to figure out what the best way to handle them is. Since I’ll be adding new entries quite regularly the number of images in the default uploads directory will get quite large.

Is this something I should be concerned about? As far as load times etc. I was going to create a co-gallery post type and attach the gallery images to this post type. Then set the gallery id on the Company edit page ( different post type ) to which the gallery belongs. A little code and I have an image gallery.

Read More

Or should I consider ( ad figure out how to ) uploading the images to a completely separate location/directory? Would doing this be worth the effort and is it really beneficial?

Hope that makes sense.

Thanx for your help.

Related posts

Leave a Reply

2 comments

    1. Reduce image size using Photoshop, smush.it, or any other decent compressor. A decent rule is .jpg for photos with lots of colors and/or details and .gif for text and under 256 colors with less details.

    2. Use exact image sizes, if you use php to resize the images make sure they are cached versions of the re-size.

    3. Use a CDN or a non shared fast host.

    4. Make the user cache the image in his browser by using;
      ExpiresByType image/jpeg "access plus 1 month" or
      <FilesMatch ".(gif|jpg|png|js|css)$"> Expires 2592000 if your on apache ( insert your own numerical values).

    By far the most important thing to do is proper compression an sizing.