Title: Jetpack Carousel
Last modified: August 21, 2016

---

# Jetpack Carousel

 *  Resolved [NickyDigital](https://wordpress.org/support/users/nickydigital/)
 * (@nickydigital)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/jetpack-carousel-7/)
 * Is there a way to have the Carousel display “large” images rather than the “original”
   images?
 * Thanks,
    N
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 4 months ago](https://wordpress.org/support/topic/jetpack-carousel-7/#post-4496960)
 * Jetpack actually automatically detects which image size to use in the Carousel
   view based on your device and its viewport. Depending on the width of your browser,
   Carousel may use the original, large, or medium file size.
 * You can find out more by looking at the code here:
    [https://github.com/Automattic/jetpack/blob/2.7/modules/carousel/jetpack-carousel.js#L877](https://github.com/Automattic/jetpack/blob/2.7/modules/carousel/jetpack-carousel.js#L877)
 *  Thread Starter [NickyDigital](https://wordpress.org/support/users/nickydigital/)
 * (@nickydigital)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/jetpack-carousel-7/#post-4496967)
 * Thanks for your response Jeremy!
 * My site utilizes watermarks on all images except the original image.
 * [http://nickydigital.staging.wpengine.com/](http://nickydigital.staging.wpengine.com/)
 * We need to be able to limit the images that carousel grabs so it never displays
   the unwatermarked images.
 * Is that possible?
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 4 months ago](https://wordpress.org/support/topic/jetpack-carousel-7/#post-4496972)
 * You should be able to use the `jp_carousel_add_data_to_images` filter ([ref](https://github.com/Automattic/jetpack/blob/2.7/modules/carousel/jetpack-carousel.php#L230))
   to change the HTML used to build the Carousel view, and use a large version of
   the file instead of the original file, for example.
 * Here is how I would do it (note that I haven’t tested this code, though):
 *     ```
       function jeherve_no_orig_image_carousel( $html, $attachment_id ) {
   
       	$smaller_img = wp_get_attachment_image_src( $attachment_id, 'large' );
   
       	$html = preg_replace(
       		'/data-orig-file="\{.*?\}"/',
       		'data-orig-file="'. esc_attr( $smaller_img ) .'"',
       		$html
       	);
   
       	return $html;
       }
       add_filter( 'jp_carousel_add_data_to_images', 'jeherve_no_orig_image_carousel', 10, 2 );
       ```
   

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

The topic ‘Jetpack Carousel’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/jetpack-carousel-7/#post-4496972)
 * Status: resolved