In PIL, since thumbnail() first makes a draft copy of the image, and
then resize it, so thumbnail() can run a lot faster than resize()
because draft() seems a lot faster when resizing from very big images
to small images... (such as the original image is 3000 x 2000, and it
can make a draft really quickly to 375 x 250, and then resize to, say
200 x 133 as a thumbnail)
However, the double resizing probably will make a thumbnail with a
lower quality than if it is directly resizing from the original... as
each resizing involves some approximation.
however, i tried directly using resize() and it is a lot slower.
But looks like if quality is of concern and time is not an issue, then
we can use the resize() to create thumbnails instead. 1 4986
Summercooln...@ gmail.com wrote: In PIL, since thumbnail() first makes a draft copy of the image, and then resize it, so thumbnail() can run a lot faster than resize() because draft() seems a lot faster when resizing from very big images to small images... (such as the original image is 3000 x 2000, and it can make a draft really quickly to 375 x 250, and then resize to, say 200 x 133 as a thumbnail)
as a matter of fact, i tried using thumbnail() to resize photos of 3456
x 2304 to 800 x 533 and it is a lot faster than using resize() This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: TechCrazy |
last post by:
Hi folks,
I want to study high quality c++ code - code that uses most of the
techniques described in "Effective C++'/ 'More Effective C++ '/'Modern
C++ Design' books.
Where do I start? Any specific open source projects?
Thanks.
|
by: Rahul |
last post by:
Hi All,
I am trying to create some Chart in C#. But When i compare them to
proffesional charting tools the look and feel is just not up to the
mark. Can you please guide what i might be doing wrong?? Is it at all
possible to create real high quality images in C#. Should i start using
C++ and windows API's to create images??
Please Advice.
Thanks
|
by: mae2x |
last post by:
Web design High-quality web & graphics Designs.
That eye catching multimedia and web design developments highly skilled
web programmers and designers that have extensive experience in website
design and development services.
Wicked Innovations
|
by: gwanglu |
last post by:
ProAOS offers you a high quality photo and video editing for your adult
sites! We guarantee you customer satisfaction and a very reliable and
professional work. If you want to try our services you can visit us at
http://www.proadultoutsourcing.com
|
by: prileep |
last post by:
I have two tables Users and UserLogin. Here i will use two methods of table design. and which query will return me the result more fast.
The table size will be large that it may contain records in lakhs.
Method 1:
Tables:
Users ( UserID varchar(20) primary key, PassWord varchar(20))
UsersLogin(UserID varchar(20),LoginDate DateTime)
Query:
Select Users.UserID,UsersLogin.LoginDate
from Users U inner join UsersLogin UL
| |
by: prileep |
last post by:
I have two tables Users and UserLogin. Here i will use two methods of table design. and which query will return me the result more fast.
The table size will be large that it may contain records in lakhs.
Method 1:
Tables:
Users ( UserID varchar(20) primary key, PassWord varchar(20))
UsersLogin(UserID varchar(20),LoginDate DateTime)
Query:
Select Users.UserID,UsersLogin.LoginDate
from Users U inner join UsersLogin UL
|
by: getmeidea |
last post by:
I have the following tables,
1> employee_master(emp_id int primary key, emp_name varchar(100));
2> employee_salary_payment(salary_rid int primary key, emp_id int, sal_date date, paid_amt int);
The tables, employee_master and employee_salary_payment have one to many relation.
I need to list the salary payment done for the employee having id = 10. Here I use two different querry to work.
Querry 1:
Select em.emp_id, em.emp_name,...
|
by: watches0898 |
last post by:
Edwards Garments Company is one popular industry specific designer
specializing in work wear that ranges from chef coats to chef hats to
separates to housecleaning uniforms. Edwards Garments Company has a
reputation for providing a high quality, affordable solution to the
professional man's or woman's wardrobe. Often, white is the color
given most focus, but a variety of colors are offered to wet your
appetite, so to speak.
...
|
by: dgreenhouse |
last post by:
Does anyone know of a high quality open source PHP classified ads script?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |