Answers.Body: <p>You shouldn't need to create a custom plugin to do that.</p>
  
  <p>You can easily create a <a href="https://craftcms.com/features/matrix">Matrix</a> content field for your carousel. Create a new block called <code>slide</code>. From there you can create an <code>asset</code> field to upload the slide image.</p>
  
  <p>You can render this into whatever markup you'd like (even bootstrap).</p>
  
  <p>As for cropping an image and converting it into a jpg, check out <a href="https://github.com/fruitstudios/AviaryImageEditor">Aviary Image Editor</a>. It's a wysiwyg editor in the admin panel for doing exactly what you are looking for.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-21T04:09:21.783Z
Answers.Text: @PizzaBoy Just so you are aware, you can crop images in Craft using [image transforms](https://craftcms.com/docs/image-transforms) if you don't need the level of control Aviary provides.
  
  If you need to have more control on how your images are cropped, I personally use two plugins: [Imager](https://github.com/aelvan/Imager-Craft) with [FocalPointField](https://github.com/aelvan/FocalPointField-Craft). You can define a point of focus for your images in the CP, and Imager will detect it and make sure to include the focal point when cropping.
Answers.UserDisplayName: Ben Fleming
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-20T19:04:15.893Z
Answers.LastActivityDate: 2016-01-20T19:04:15.893Z
Answers.UserDisplayName: Rob Erskine
Body: <p>I wanted to create a php which allow admin to upload their pictures in any resolution and image file type, but it has to display into a bootstrap carousel with fixed size. 
  Does anyone has the similar script I can have a look?</p>
  
  <p>It might needed to do the following;
  Upload image into a specific location, convert image type into jpg, specific resolution, and be able to read by bootstrap carousel. My head is about to broke thinking of this script :(</p>
  
Tags: <plugins><image><php><upload>
Title: Upload any size image into carousel
ThreadText: # Upload any size image into carousel
  
  (Asked by: username_0 on 2016-01-20)
  
  I wanted to create a php which allow admin to upload their pictures in any resolution and image file type, but it has to display into a bootstrap carousel with fixed size.
  Does anyone has the similar script I can have a look?
  
  It might needed to do the following;
  Upload image into a specific location, convert image type into jpg, specific resolution, and be able to read by bootstrap carousel. My head is about to broke thinking of this script :(
  
  **Tags:** plugins, image, php, upload
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-01-20. Score: 5
  
  You shouldn't need to create a custom plugin to do that.
  
  You can easily create a [Matrix](https://craftcms.com/features/matrix) content field for your carousel. Create a new block called `slide`. From there you can create an `asset` field to upload the slide image.
  
  You can render this into whatever markup you'd like (even bootstrap).
  
  As for cropping an image and converting it into a jpg, check out [Aviary Image Editor](https://github.com/fruitstudios/AviaryImageEditor). It's a wysiwyg editor in the admin panel for doing exactly what you are looking for.
  
  > **Comments:**
  > **username_2**: @PizzaBoy Just so you are aware, you can crop images in Craft using [image transforms](https://craftcms.com/docs/image-transforms) if you don't need the level of control Aviary provides.  If you need to have more control on how your images are cropped, I personally use two plugins: [Imager](https://github.com/aelvan/Imager-Craft) with [FocalPointField](https://github.com/aelvan/FocalPointField-Craft). You can define a point of focus for your images in the CP, and Imager will detect it and make sure to include the focal point when cropping.  
  
  ---
  
  