• Resolved ionutcroitoru

    (@ionutcroitoru)


    Hi there and thank you for a great theme!

    Would it be possible to disable the image scaling and optimization for both the preview images and the post images? I tried to modify the theme functions but it doesn’t seem to do the trick:

    add_image_size( ‘hamilton_preview-image’, 4096, 9999 );
    set_post_thumbnail_size( 4096, 9999 );

    But they are still limited to 2048.

    I even added add_filter( ‘big_image_size_threshold’, ‘__return_false’ ); but still no luck.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @ionutcroitoru,

    That code should work. Keep in mind that any changes made to the theme functions.php file will be overwritten when the theme is updated, so you could make those changes in a child theme.

    Also, after you’ve changed the image sizes, you need to use a plugin like Regenerate Thumbnails to update the image files on the server.

    — Anders

    Thread Starter ionutcroitoru

    (@ionutcroitoru)

    Well,

    in the meantime I switched to another theme ??

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove image scaling & optimization’ is closed to new replies.