title: convert pillow Image object to JpegImageFile object
body: <p>I cropped an jpeg image, but the cropped image type is </p>
  
  <pre><code>&lt;class 'PIL.Image.Image'&gt;
  </code></pre>
  
  <p>how can i convert it to </p>
  
  <pre><code>&lt;class 'PIL.JpegImagePlugin.JpegImageFile'&gt;
  </code></pre>
  
  <p>? </p>
  
  <p>thank you!</p>
  
  <pre><code>import requests
  from PIL import Image
  from io import BytesIO
  
  img = Image.open(BytesIO(requests.get("https://mamahelpers.co/assets/images/faq/32B.JPG").content))
  img2 = img.crop((1,20,50,80))
  
  print(type(img)) # &lt;class 'PIL.JpegImagePlugin.JpegImageFile'&gt;
  print(type(img2)) # &lt;class 'PIL.Image.Image'&gt;
  </code></pre>