Free Online Articles Directory
17.11.2008 Sign In Register Hello Guest
Email:
Password:
Remember Me 
forgot your password?


Crop Image File Size, Width & Height Using Php Script

Author: Asif Khalyani Author Ranking Blue | Posted: 03-07-2008 | Comments: 0 | Views: 1,123 | Rating:  (244) Article Popularity - Blue (?) Got a Question? Ask.
Sign Up Now!

Crop Images Contextually

Crop images contextually for faster downloads and higher impact. By cropping maximally and resizing you can convey meaning without slowing down your web pages.

However, we've seen many sites that either use HTML's width and height attributes to resize larger images, or minimally crop and resize images to lose vital information. A better way to create images optimized for the Web is to crop them contextually.

Contextually Cropping


What is cropping contextually? Many times digital images shot for Web use have a border of useless space around the object(s) of interest. Rather than crop to just the film or chip's border, crop contextually down to the minimum dimensions that still convey the meaning or context of your image.

Note how the author is now more recognizable in the cropped version (behind the sunscreen) and the lettering is larger and more legible. Most importantly, the image has more impact, with the subject taking up more of the frame. This cropped image could be shown with a smaller dimension, saving file size.

Resize to a Smaller Thumbnail

Once you've got your image maximally cropped, resize and sharpen it to create a smaller thumbnail image. To give the reader more detail, you can provide a larger version (cropped or uncropped) of the image linked to that thumbnail.

This two-step process of cropping maximally and resizing is what Jakob Nielsen calls "relevance-enhanced image reduction." Nielsen writes that by combining cropping and scaling you can "preserve both content and detail, even at very small sizes." (Nielsen 2000)

Extreme Closeup for a Sneak Preview

Some high fashion sites actually use only the important part of an image as a thumbnail. For example, just the shoulder or neckline of a style - click and you get the full shots with details. This "image tease" technique can add an artistic feel to a site. Let's get up close and personal with our intrepid traveler.

Extreme Cropping through Rearrangement

In extreme cases you could rearrange the target objects and reshoot, or move them closer together in your favorite image editing program. The idea is to use the smallest possible image that still conveys the information you want to display. You may need to bump up font sizes to withstand more extreme image reductions.

JPEG Cropping Caution

Be careful when resaving JPEG images. Reoptimizing an existing JPEG can compound compression artifacts. It is possible to transform JPEGs losslessly, however. Lossless transformations (like 90-degree rotations and flips) require the dimensions of the JPEG to be a multiple of the block size (16x16, 16x8, or 8x8 pixels for color JPEGs). Lossless crops are also possible by cropping to block boundaries with specialized software, like JPEG Wizard.

Rate this Article: Current: 4 / 5 stars - 7 vote(s).

Article Source: http://www.articlesbase.com/programming-articles/crop-image-file-size-width-height-using-php-script-471473.html

Print this Article Print article   Email to a Friend Send to friend   Publish this Article on your Website Publish this Article   Send Author Feedback Author feedback  
About the Author:

I am Asif Khalyani. I am software Engineer. PHP and ajax free script download site phpasks. User can download free php script.

Submitting articles has become one of the most popular means to drive traffic to your website and promote yourself and your business. Join us today - It's Free!

Article Comments

Comment on this article Comment on this article
Your Name
Your Email:
Comment Body
Enter Validation Code: Captcha


Related Articles

Ajax Form Validation and Thread-safe Ajax
By: Asif Khalyani | 03/07/2008 | Programming
This is the PHP and AJAX form validation application you can create AJAX and PHP: Building Responsive Web Applications.

Upload Image Without Refresh Page - Asynchronous Image File Upload Without Ajax
By: Asif Khalyani | 23/06/2008 | Programming
I suppose it is neccessary to bring a little bad news to Ajax at this point, it is not possible to process a file upload through the XMLHtrtpRequest Object. The reason of this is that javascript has no access to your computer's file system.


By: | 31/12/1969 |

Rich Internet Applications (ria)
By: Max J. Pucher | 22/03/2008 | Information Technology
The all-new hype is Rich Internet Applications (RIA). Adobe is touting Flash FLEX functionality as the next big thing in RIA. Papyrus EYE makes the development of completely dynamic user frontends in the browser much easier than Flex.

Creating a Simple Ajax Control in Asp.net 2.0 and C#
By: Programminghelp.com | 08/08/2008 | Programming
In this article I will explain how you can easily create an AJAX enabled web site within Visual Studio 2005 utilizing C# and how to utilize the AJAX framework to add a simple control from the list of controls available in the AJAX Control Toolkit.

Hyip Script
By: AJ Square Inc | 06/10/2008 | Software
AJ HYIP Script is a latest advanced features and most suitable package for investment sites. We provide high quality software packages such as HYIP Script, e-commerce, auction script and article script.

The Web 2.0 Effect: the Characteristics of a Web2.0 Website
By: M.Markell | 05/02/2007 | Networks
The term web2.0 was originally presented by O'Reilly Media (A well known media company publishing books and websites on various computer technology topics). It's a term that refers to a new generation of websites (social networking websites, wiki-based websites etc). These websites take advantage of web application technologies and give web users the ability to collaborate and share their experiences, views, opinions and interests while they surf the web.

Finding a Website for Hot Source of CSS Information?
By: Walloon Brabant | 09/04/2008 | SEO
For web developers, getting a web development platform that would be catering a new web experience is their dream. Before, websites are designed in an old fashion way of text, images and plug-ins. As the internet experience evolved, it becomes more complicated that the usual HTML program could not cater it anymore. While plug-ins like Flash objects have redefined the web experience, nevertheless, has also its own downfall and that is readability.

Got a Question? Ask.

Ask the community a question about this article:

Frequently Asked Questions

Ajax Hot Water Boilers
By: ralphepinc | 01-07-2008
I would appreciate any information about fires caused by,or connected with, Ajax hot water boilers.

I need to implement bulk mailing on my site
By: vijen | 25-04-2008
m developing a site using asp.net, I need to implement bulk mailing on my site for my users informing them about new offers.... How can I do that?????

What Language to write software?
By: Mr. Barber | 08-03-2008
I WANT THE ULTIMATE SMART HOME ;)  For free. * What language should I use to write a sophisticated home automation solution? I think I might strongly prefer Java desktop programming. I know NOTHING of programming, sadly. I would need this in my home automation program...remote desktoping.free and owned by me and open source.voice chat bot running aiml.control over the electrical switches of my home.control of my remotes, tvs, computers, and electronics.be able to call my cell phone and send a txt message.motion web cam. I want to run all this on a desktop machine in my cieling, remote desktoped to linux computers throughout the home. Especially for when I'm away on business, I want to be able to vocally ask my house fluid human-sounding questions. A program called DragonSpeak might help me. Text-To-Speech, too. And an AIML chatbot. "Turn off the lights, put on music, forward a call, turn on Bob's PC, etc."  Has anyone seen the TV show Eureka? Well they have a talking house. I want that. I know I can make that.  So in review...  I think Java might solve all my problems. Flexible, powerful, and very supported. I'm very much open to alternatives, though. Such as Google Open Handset Alliance having their "Android" os that might be fun to program for. Google also has a bunch of code databases to browse through code to see what it does. So is Java the multipurpose way of the future for home automation?/security/AI I really know nothing of the topic.  What a messy question I've asked...

What OS to learn Java on? Ubuntu or Vista?
By: Mr. Barber | 08-03-2008
Is it easier to learn/practice Java desktop programming in Linux or Windows? I'm talking about really large complex desktop software. Possibly 3D. Not web development...well maybe a little.I'm aware there are a ton of other languages and options out there. C++, .NET, Cobalt, AJAX, Flash, Silverlight, on and on and on and on....... :P I almost don't even care about those, I just want Java, being OS independent, and has a bright future ahead.

Can javascript be implemented in PHP?
By: xxAlex | 05-02-2008
Can javascript be implemented in PHP?

What is the correct way to build ajax based user interface for a website?
By: rogerbit | 20-08-2007
Do standart exist? Where can I read about it?

Q&A Powered by:
Powered by Yedda 

Latest Programming Articles

Mvc Design Pattern
By: TuVinhSoft .,JSC | 14/11/2008
Model-view-controller (MVC) is an architectural pattern used in software engineering. In complex computer applications that present a large amount of data to the user, a developer often wishes to separate data (model) and user interface (View) concerns, so that changes to the user interface will not affect data handling, and that the data can be reorganized without changing the user interface.

Advantages of Low Cost Contract Programmers in Freelance Programming
By: Joanna Gadel | 12/11/2008
It observed that web industry is getting tougher thus the necessity of freelance contract programmer is required for developing more effective website with flexible features. This article states the fruitful advantages of freelance programmers in contract programming.

A Guide to Cnc Kits
By: Martin Applebaum | 09/11/2008
CNC kits are a way in which to construct your CNC machine. This article will provide some information on these machines.

A Guide to Cnc Tube Bending Machines
By: Martin Applebaum | 08/11/2008
Are you familiar with a CNC tube bending machine? This article will shed some light on the main function and components of this machine.

Ways to Hire Dedicated Php Programmers
By: Jucick | 08/11/2008
It’s not at all easy to hire dedicated PHP programmers unless you know where and how to find them. Whether you need to fix, update or enhance your website you naturally want the job done quick and right.

Top 4 Reasons Why Addressing Web Accessibility is Important
By: Matt Cave | 05/11/2008
There are very high chances that web accessibility is more important to the performance of your web site than you realize. Article takes a look at the top 4 reasons why it would be important to address the issue of web accessibility.

Xlphoto Printing, the Best Choice for Banner Printing and Poster Printing
By: Vikram Kumar | 01/11/2008
Suppose, you have visited a tourist spot or a hill station; over there, you have witnessed some of the mesmerizing locations of serene nature.

Simple & Complete Gridview Functionality(dotnet 2.0) by Syed Shees Abidi
By: Shees Abidi | 31/10/2008
My this article covers GridView functionality in a Complte,Simple & Precise way in ASP.NET(2.0),C#,SQLServer 2005.This article provides a single GridView which is capable of ~Displaying Data ~Updating it ~Deleting the existing records from database based on a Confirmation Message and ~Inserting a new record(which is beyond the implicit usage of GridView). NOTE: The application requires three simple stored proc. named empins,empupd,empdel for updation insertion and deletion respectively

More from Asif Khalyani

Easy Ajax Inline Text Edit 2.0
By: Asif Khalyani | 09/09/2008 | Programming
A small piece of javascript reads al SPAN tags, checks if it has class="editText" and a id=. If that is true, it adds a onclick function. That onclick function will create a textfield or input (depending on the size of the editable text). Someone has the ability to edit the field. When the text field is blurred, it will read the contents, and starts a XMLHttpRequest and ‘sends’ the content + fieldname + any set vars to an update file.

Ajax Rating Script - Php & Mysql
By: Asif Khalyani | 09/09/2008 | Programming
Frequent visitors of ajax enabled websites, like ajaxian, have all witnessed them already: ajax rating widgets.

Ajax Form Validation and Thread-safe Ajax
By: Asif Khalyani | 03/07/2008 | Programming
This is the PHP and AJAX form validation application you can create AJAX and PHP: Building Responsive Web Applications.

Upload Image Without Refresh Page - Asynchronous Image File Upload Without Ajax
By: Asif Khalyani | 23/06/2008 | Programming
I suppose it is neccessary to bring a little bad news to Ajax at this point, it is not possible to process a file upload through the XMLHtrtpRequest Object. The reason of this is that javascript has no access to your computer's file system.

Article Categories





Give Feedback

Sign up for our email newsletter

Receive updates, enter your email below