title: I can't cut of image using "crop" of "pillow"
body: <h3>Question about django.</h3>
  <p>Posted image from form was saved and cut it using &quot;crop&quot; of &quot;pillow&quot; then resize and save.</p>
  <p>the program was no problem in local, but it was not cuted as specified after deployed on vps (When I upload 5 images, the one or two images was not cuted as specified) .</p>
  <p>I just only deployed data of git.</p>
  <p>I don't understand the cause.</p>
  <p>Could you tell me, if you know the cause.</p>
  <h3>Code</h3>
  <pre class="lang-py prettyprint-override"><code>print(int(x))
  print(int(y))
  print(int(w))
  print(int(h))
  
  pp = ImageTable.objects.filter(sort_id = st.sort_id)
  print(pp[count-1].image)
  im = Image.open('media/' + str(pp[count-1].image)) #'str(pp[count-1].image)' is for example like 'images/test.png' images path
  
  xx = int(x) + int(w)
  yy = int(y) + int(h)
  
  im = im.crop((int(x), int(y), int(xx), int(yy)))
  im.resize(size=(200, 200), resample=Image.BOX).save('media/' + str(pp[count-1].image))
  </code></pre>
  <h3>I Tried</h3>
  <p>About the code above.</p>
  <p>the code is looped by for function and upload five images.</p>
  <p>it upload different images for each loop because of count is plus 1 every loop.</p>
  <p>I confirmed x,y,w,h was as specified value by using print debug.</p>
  <h3>Supplementary information</h3>
  <p>I hardly changed, but I changed database to postgresql from db.sqlite3.</p>
  <p>Is this relevant.</p>