Mageia Bugzilla – Attachment 12005 Details for
Bug 26919
python-pillow new security issues CVE-2020-10378, CVE-2020-10379, CVE-2020-10177, CVE-2020-10994, CVE-2020-11538
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
test creatiing thumbnails of images in current working directory
thumbnail.py (text/plain), 234 bytes, created by
Herman Viaene
on 2020-11-19 14:04:01 CET
(
hide
)
Description:
test creatiing thumbnails of images in current working directory
Filename:
MIME Type:
Creator:
Herman Viaene
Created:
2020-11-19 14:04:01 CET
Size:
234 bytes
patch
obsolete
>from PIL import Image >import glob, os > >size = 128, 128 > >for infile in glob.glob( "*.jpeg" ): > file, ext = os.path.splitext( infile ) > im = Image.open( infile ) > im.thumbnail( size ) > im.save( file + ".thumbnail", "JPEG" )
from PIL import Image import glob, os size = 128, 128 for infile in glob.glob( "*.jpeg" ): file, ext = os.path.splitext( infile ) im = Image.open( infile ) im.thumbnail( size ) im.save( file + ".thumbnail", "JPEG" )
View Attachment As Raw
Actions:
View
Attachments on
bug 26919
: 12005