URGENT: Less image generation

Posted in: Newspaper
Post count: 317

Hi,

The theme is great — that’s what I have said for the last 5 months. The theme is beautiful and no other theme can beat it. However, there are some big problems in it. For example, if a website runs on a shared server, it takes at least 1 minute for a 1200x780px image to upload. I believe this is because the fact the theme generates many sizes of the image.

Is there any way, tagDiv team can reduce the number of images that are generated from a single image? It would make the process of uploading a image much faster and easier.

Please help, its really urgent for me.

Cheers!

Post count: 38

Hello! You can comment some sizes you dont use in the functions.php file, thats what i do…

Post count: 7

mehedi, this won’t directly answer your question but if you’re trying to say the ~10 image sizes that the theme generates is causing your uploading to be slow (due to being on a shared hosting plan) that is the least of your worries and I’d be more concerned if my website was actually hosted by professionals and not in someones basement on a spare Pentium 3 they had laying around.

I’d look for a new host, ASAP.

Post count: 317

@alturic I doubt its my server’s problem. I am currently hosting my site at InMotion Hosting, they’ve good servers and are very fast

Post count: 9544

From my understanding, WP doesn’t generate thumbnails until the image is fully uploaded. What does matter is the size of the image you’re uploading. E.g., the size you’re using should not be larger than 100kb, and ideally 60kb max. If you’re uploading a 2MB image, it’s obviously going to take longer on a slow connection.

Converting a single image to multiple sizes with imagemagick on the server is usually a very fast process and used little RAM if the original image size is not too large (again if you’re uploading 2MB files, that would be a big problem!).

But I’d make sure you comment out the sizes you’re not using, as that does cut the time for processing the image way down. I have a hunch it’s more to do with the refresh and update of the media manager and upload in the browser than the actual image processing.

Sorry that’s not a perfect answer, either.

Post count: 317

Thanks for the suggestions, @Christopher

Post count: 9544

OH, forgot to post the link from Lucian on commenting out the functions.php stuff

http://screencast.com/t/SIgP1ZV3

Post count: 317

But the thing is, how do I know what sizes the theme is using?

Post count: 7

The theme uses all the sizes technically. That’s why they are in the functions.php. The question is what sizes are >YOU< using based on your block setup and such.

Post count: 317

Thanks everyone for the support 🙂 If you guys can, please help me with this: https://forum.tagdiv.com/topic/how-to-use-shortcodes-on-theme-files-to-display-blocks/

Post count: 9544

Hey!
check the docs, here… under thumb sizes.

basically look at which modules you’re using, and the sizes you’re actually using on your homepage, sidebar, footer, etc.; remove those sizes you’re *not* using:
https://forum.tagdiv.com/modules-and-blocks/

You can also do the trick from my past posts of making sure that the small/medium/large defaults from the WordPress settings panel (not theme panel), match the three sizes you most use; this way you’re not doing theme sizes *and* WP default sizes!

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.