• Under Recipe Directions the images are rendering in its original size (2-6MB in my case). The entire page is about 10-15MB. Is it possible to set sizes via settings or hooks?

    It seems like they are hardcoded to render in the original size:
    from /cooked/includes/class.cooked-recipes.php
    $image = ( isset($dir['image']) && $dir['image'] ? wp_get_attachment_image( $dir['image'], 'full' ) : '' );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Boxy Studio

    (@boxystudio)

    @drtimofey: Good point, I’ll change this to the ‘large’ format instead of ‘full’ for the next update. That should bring it down a lot. I’ll throw a filter hook in there as well so you can change it to whatever you’d like. ??

    Thread Starter Timofey Drozhzhin

    (@drtimofey)

    Thank you! It would be also great if you can include a filter hook for the featured image (class.cooked-shortcodes.php line 700) and og:image (class.cooked-past-types.php line 90). Not sure if it can be all done with the same hook…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images are not sizing’ is closed to new replies.