Python | Resize Image with Pillow

Поделиться
HTML-код
  • Опубликовано: 13 мар 2019
  • You can easily resize your original image to a new set of dimensions with the Pillow library. In this video, we'll discuss some of the best practices of resizing while maintaining aspect ratio.

Комментарии • 8

  • @eddyizm
    @eddyizm 2 года назад

    Great short video!

  • @dustinjoosen5901
    @dustinjoosen5901 4 года назад

    thanks! this really helped!

  • @BhaktiSongsYT
    @BhaktiSongsYT 3 года назад

    Thanks!! This helped :)

  • @jyothilakshmi963
    @jyothilakshmi963 2 года назад

    Will thi is work for graph...

  • @user-hd6xc1xn9d
    @user-hd6xc1xn9d 4 года назад +2

    It seems that when I type
    im = Image.open("advancedinteractivedevelopmentlogo.jpg")
    it can't find the file. Do I need to type the file path?
    Error code:
    FileNotFoundError: [Errno 2] No such file or directory: 'advancedinteractivedevelopmentlogo.jpg'
    I use the PyCharm IDE
    Thanks

    • @shivamchaturvedi6702
      @shivamchaturvedi6702 4 года назад +1

      Your image won't be in the folder where the program file is saved . Before the name of the image define it's path.

    • @picturesspeaklouderthanwor1788
      @picturesspeaklouderthanwor1788 4 года назад +1

      You can import os
      And then use:
      os.chdir(r'your path here')

    • @tiiibo
      @tiiibo 2 года назад

      oh yeah i had this problem for a while. now i just do
      ROOT = __file__.strip('filename.py')
      in every program lol
      so when i need the image i can to
      im = Image.open(f"{ROOT}image.png")