• Resolved pp46

    (@pp46)


    Hello
    I am trying to add Woocommerce to my site to sell photos (download)
    I am uploading to the media a 5520×3680 14.7 Mo file to the media library and its resized to 2560 by 1635 pixels with file name extension added with -scaled.jpg
    The max upload size in php.ini is set to 128 Mo
    So after looking on the internet I can not find a solution to this apart that its a set function in WP
    Any ideas how to fix this as I need to to sell the photos full size,
    thanks for any help
    Philip

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @pp46,

    This is the expected behavior of WordPress Media Library for uploaded images as from version 5.3 and you can read more here: https://make.wordpress.org/core/2019/10/11/updates-to-image-processing-in-wordpress-5-3/.

    There is a workaround though for this. You can add the following snippet in the functions.php file on your child theme or add it via a plugin like Code Snippets.

    
    add_filter( 'big_image_size_threshold', '__return_false' );
    

    Once the snippet is activated the images won’t be scaled when uploading them to the Media Library.

    Hope this helps!

    Thread Starter pp46

    (@pp46)

    Hello Mirko P

    Thanks for your answer, there seems to be missing something in the code?
    I am getting an error either with modifying the functions.php file or using the snippet P-in

    add_filter( 'big_image_size_threshold', '__return_false' );

    Philip

    Thread Starter pp46

    (@pp46)

    Hi Mirko apparently this does not work well with WP and Woocommerce, but I found the fix in setting appearances you can put the images full size also removing
    -scaled at the end of the file name in media library it puts the image at original size…

    Thread Starter pp46

    (@pp46)

    So If you do not mind I have an other problem on this page
    (an other site)
    https://www.melle-creation.fr/boutique/

    as you can see the page is not centered all is stuck to the right, I have checked everywhere but can not find the reason, all the other pages are ok
    I am using Divi apart from on all none product/woocommerce pages..
    so I guess those pages use the standard WP editor..
    Thanks
    Philip

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there 👋

    but I found the fix in setting appearances you can put the images full size also removing
    -scaled at the end of the file name in media library it puts the image at original size…

    Glad to hear that you were able to fix the issue. 🙂

    as you can see the page is not centered all is stuck to the right, I have checked everywhere but can not find the reason, all the other pages are ok
    I am using Divi apart from on all none product/woocommerce pages..
    so I guess those pages use the standard WP editor..

    In regards to this issue, when inspecting your site code, I can see that the layout is coming from Divi. You can confirm that by temporarily switching to Storefront Theme to see if that resolves the issue.

    If it does resolve the issue, please reach out to your theme’s developers for a solution as they are better equipped to help you out.

    Hope that helps! 🙂

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not heard back from you in a while so I’ll go ahead and mark this thread as resolved. I hope you will find the above information useful.

    Please feel free to create a new thread if you have further questions.

    Thanks.

    Thread Starter pp46

    (@pp46)

    Hi Mirko
    Sorry for not getting back
    I did as you suggested and contacted Divi who solved the problem with a bit of CSS 😉
    Its all goood now

    Here is the fix

    `/*center menu*/
    #et-top-navigation {
    float: none;
    text-align: center;
    }

    nav#top-menu-nav, #top-menu {
    float: none;
    }

    /*keep cart button at top right*/
    #et-top-navigation .et-cart-info {
    float: none;
    position: absolute;
    top: 40%;
    right: 20%;
    }

    • This reply was modified 4 years, 8 months ago by pp46.
    Thread Starter pp46

    (@pp46)

    So we can close this thread now
    Thanks again
    :=D

    • This reply was modified 4 years, 8 months ago by pp46.
    Plugin Support abwaita a11n

    (@abwaita)

    Glad to hear it – thanks for letting us know!

    As the thread is resolved, it’ll be closed in due time. If you have any further questions, always feel free to create a new thread.

    Cheers!

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

The topic ‘Image size problem with WP’ is closed to new replies.