Viewing 9 replies - 1 through 9 (of 9 total)
  • catacaustic

    (@catacaustic)

    What you’re uploading is WAY Too big for most hosting servers to handle. The memory that’s used to generate the thumbnails is several times what the image size is, so a 17MG image that’s 12,000 x 8,000 pixels (as per your example) could take 10 to 50 times that… and that’s just not available in most hosting server systems. On top of that servers aren’t made optimally for image processing (but optimised for web hosting… who’d have thought?), so they can’t handle it well either.

    What you need to do is re-size and resave the images before you upload them. Normally the largest side should be 2,500 pixels, but you might get away with 3,000 pixels if you’ve got a decent server.

    And remember that JPG quality matters. Full quality is a huge file size, and takes up more resources so can break. Keep quality to around 70 to 80 and you’ll get better results. For PNG a GIF images quality isn’t an issue as it’s all full-quality anyway, so the file sizes can easily be a lot larger depending on the image.

    Thread Starter Mahesh Thorat

    (@maheshmthorat)

    Hi @catacaustic I can understand what you flagging. But I have already raised issue here https://core.trac.www.ads-software.com/ticket/61916#comment:11
    and only I get this issue @hellofromTonya not detected this issue so far.

    Also want to flag that I have tested this for different hosting as well as on local machine.
    This is my server and PHP info https://drive.google.com/file/d/1ePcjuiuUqxhtjVyUu7mmu0EE1bKB0oGo/view?usp=drive_link

    And I eventually get this issue on no installed plugins with default WP theme. Please let me know any specified server requirements for uploading large pixel images.

    Thanks,
    Mahesh Thorat

    You should definitely listen to @catacaustic’s practical advice.

    But just for reference, this is a documented feature… and not a bug. The limit is hard-coded (though filterable), and not something dynamically determined based on available server resources.

    See big_image_size_threshold() and wp_create_image_subsizes()

    To disable the feature completely, add this to your theme’s functions.php file (or wherever you run custom PHP code from):

    add_filter( 'big_image_size_threshold', '__return_false' );

    Good luck!

    Thread Starter Mahesh Thorat

    (@maheshmthorat)

    @gappiah Thanks for suggesion
    add_filter( 'big_image_size_threshold', '__return_false' );

    This has been already added sorry not mentioned before.

    catacaustic

    (@catacaustic)

    One big question… Why do you need to upload images of this size? There might be a real reason for it, but that might help with some alternative ideas or reasons not to.

    As for server specs, I can’t tell you that. What you want to do will require a large amount of RAM and good CPU power. How much… is impossible to say as every image is going to be individual so two images that seem very similar will need different resources to process. The best that you can do is try and see. If it fails due to server resources, add more resources to the server until it stops failing.

    Thread Starter Mahesh Thorat

    (@maheshmthorat)

    @catacaustic Thanks for reply.

    I’ve looked into this further and found that it’s not working for me, both locally and on different servers. That’s why I created this thread: https://core.trac.www.ads-software.com/ticket/61916#comment:11.

    My main question is: why is this happening? Since it’s a default feature in WordPress, there should be an error message indicating that the image sizes weren’t created. Instead, it uploads the image at full size and uses the same image everywhere in WordPress.

    One big question… Why do you need to upload images of this size? There might be a real reason for it, but that might help with some alternative ideas or reasons not to.
    >> My goal is to enhance the image uploading process, as there are various scenarios where we need to upload large images. This issue may also affect other users in similar situations.

    catacaustic

    (@catacaustic)

    If all that you want is to “enhance the image uploading process” then I’d suggest that you offer that in a Trac ticket instead of saying that it fails. That way the devs will be able to see that you’re asking for an error message of some sort, and not a fix for your site. ??

    Thread Starter Mahesh Thorat

    (@maheshmthorat)

    Yes but the Tonya Mork closed ticket by saying it invalid. But we all facing the same issue.
    For this issue there are some other plugins available but I think this should solve in core.

    Could you please add comment here https://core.trac.www.ads-software.com/ticket/61916#comment:11

    Yes but the Tonya Mork closed ticket by saying it invalid. But we all facing the same issue.
    For this issue there are some other plugins available but I think this should solve in core.

    That sounds logical, except you left out this important note given by the core committer that closed the ticket: “As there are multiple “can’t reproduce” reports, I suspect the issue you’re experiencing is due to something outside of WordPress Core’s source code.”

    @gappiah Thanks for suggesion
    add_filter( ‘big_image_size_threshold’, ‘__return_false’ );

    This has been already added sorry not mentioned before.

    This filter works for me. See screenshot below, using your own image.

    If it’s not working for you, this must be due to something in your environment causing this. The solution is to troubleshoot what’s causing the filter to fail in your environment.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.