• Resolved nezteb

    (@nezteb)


    If I use an image such as: https://example.com/wp-content/uploads/2017/04/IMG_2744.jpg

    And view the announcement page, the image actually being used is a cropped version: https://example.com/wp-content/uploads/2017/04/IMG_2744-350×120.jpg

    If I go into my media library, that image doesn’t even exist, so it’s being created on the fly by the plugin and not registered to the media library.

    The plugin is cropping my banner images. I don’t want that. I can’t find a setting anywhere where this is being set.

    As an alternative I tried to put a regular image in the body of the announcement instead of as a banner, but the image doesn’t show up on the site. It shows just fine in the editor.

    Any ideas? I’d rather not have to modify the core plugin code to prevent this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Code Parrots

    (@codeparrots)

    Hi @nezteb,

    You are correct in your assumptions. Timeline Express automatically generates the timeline banner image size whenever a new image is uploaded (assuming you have uploaded the images after you have installed and activated Timeline Express).

    Those images are then referenced on the timeline as the banner image, which is why you are seeing the 350×120 image size.

    That image size is registered by Timeline Express and the image size is registered as timeline-express (reference).

    https://github.com/EvanHerman/timeline-express/blob/1df2289f5522bad93851f1a94f7ca6081682e5c3/lib/classes/class.timeline-express.php#L35

    There are a few ways that you can work around this. If you are comfortable working with code, or at least adding code to the functions.php file of your theme – you can use the built-in filters of Timeline Express to specify an alternate image size to use. This would prevent you from having to edit the plugin core code while allowing you to alter the image size of the image on the timeline.

    We have documentation setup explaining how this can be achieved here:
    https://www.wp-timelineexpress.com/documentation/how-do-i-use-a-larger-announcement-thumbnail-size/

    As an example, if you wanted to use the ‘full’ image size you could easily specify ‘full’ as the image to use when hooking into the timeline-express-announcement-img-size filter.

    Example (full image sizes on the timeline announcement):

    
    function change_timeline_express_announcement_image_size( $image_size, $post_id ) {
        $image_size = 'full';
        return $image_size;
    }
    add_filter( 'timeline-express-announcement-img-size' , 'change_timeline_express_announcement_image_size', 10, 2 );
    

    Another alternative to writing some code to do the job is to make use of our Toolbox add-on, which would allow you to specify the image size from the admin dashboard.

    https://www.wp-timelineexpress.com/products/timeline-express-toolbox-add/

    Either way, it should be easily achievable without you having to alter any of our code and to allow you to update the plugin without any impact.

    Let us know if that helps you out!

    Thread Starter nezteb

    (@nezteb)

    Thank you for the quick and detailed reply! I’ll play with it and let you know how it goes. You rock!

    Plugin Contributor Code Parrots

    (@codeparrots)

    Hi @nezteb,

    I’m closing out this issue due to inactivity and because we have provided a solution above.

    If you are still encountering issues feel free to reach out to us and we can help out.

    Thanks for all your support!

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

The topic ‘Banner Images Being Cropped’ is closed to new replies.