Image slides should be able to come from a Image Style preset.
Enough if it can be defined under field configuration on content type visualization.

Comments

vali hutchison’s picture

I would agree this would be a good option - to be able to select the image style via 'Manage Display' for the Carousel content type.

However, the Carousel module provides a drupal template bootstrap_carousel/theme/node--bootstrap_carousel.tpl.php so you can then copy this into your theme's templates folder and edit to use your own image style. For example I create an image style called wide_carousel_image and then changed the code on line 50 from

$img_url = file_create_url(file_load($carousel_slide['carousel_image'])->uri);

to be

$img_url = image_style_url('wide_carousel_image', file_load($carousel_slide['carousel_image'])->uri);

and then it displays the carousels using this new wide image using the image styles I've set for it.

hatuhay’s picture

Good enough, have not notice that.
Thanks!!

busla’s picture

Thanks!

This is information is essential to change the dimensions of the slides you are using.

May I suggest that the author creates a "Tips & Tricks" page open for editing so Vali Hutchison´s solution can be shared on the project page?

carolpettirossi’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

busla I've added this tip & trick to module page.
Tks.