Solved

Conform picture to 8x12 format

Posted on 2011-03-09
1
248 Views
Last Modified: 2012-06-22
I've used some of the PHP image functions and have been quite impressed.  I was wondering if it could help me with this project.  I have .jpg files all of different sizes and proportions.  I need to print them all on 8x12 prints.  What I have been doing is using my calculator and enlarging the canvas and adding black bars where space needs to be filled, so that it fulfills the 8x12 ratio.

I can't help but think this could be done programatically using PHP.
0
Comment
Question by:hrolsons
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 500 total points
ID: 35087987
If you can work out the pixel size then you can use the image resize routine in the question below to ensure that your resized image fits within the pixel sizes for your image

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_24935011.html#25924977

Adding the borders would be a matter of calculationg two rectangles in the appropriate places and filling them with black (or white)
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question