Devam Ediyor

URGENT: Need help in clipping jpeg script issue..

Hello Bidders,

We've got a PHP script that uses the FPDF library to generate PDFs. It works like it's supposed to, except when inserting images. The issue is that our images can have heights of over 8000px. We need to crop the image into a 400px height, maintaining the original width. But we would prefer not to make a cropped copy of the image and have the PHP script insert a clipped image (temporary perhaps) into the PDF.

Here's the function that outputs the image onto the page

function showArticleImage( $id, $x, $y, $w = 0, $h = 0, $tw = 0 )

{

global $objArticle;

$fn = $objArticle->getImageUrl($id);

if ( !file_exists($fn) )

return;

$imgsize = getimagesize($fn);

$tw = $imgsize[0];

$th = $imgsize[1];

include_once("classes/[url removed, login to view]");

$objThumb = new Thumbnail($fn);

$objThumb->size_width($tw);

$objThumb->size_height($th);

$objThumb->quality=75;

$objThumb->output_format='JPG';

$objThumb->jpeg_progressive=0;

$objThumb->allow_enlarge=false;

$objThumb->memory_limit='128M';

$objThumb->max_execution_time = '60';

$objThumb->process(); // generate image

$fn = $this->tempimage("tmp",".jpg","tmp");

$objThumb->save($fn);

$imgsize = getimagesize($fn);

$this->Image($fn,$x,$y, $tw, $th);

@unlink($fn);

}

So we now need a function that will crop the image height to 400px before sending it to the pdf ( the line $this->Image($fn,$x,$y, $tw, $th); sends the image to the pdf). $fn is the url of the image filename.

I can share the [url removed, login to view] with the selected bidder.

What we need:

We need code that will crop the image being sent to the pdf generating library.

For the experienced coder, this will be a quick project.

PLEASE BID ONLY IF YOU HAVE HANDS-ON EXPERIENCE WITH FPDF LIBRARY AND UNDERSTAND WHAT NEEDS TO GET DONE.

If you have any questions, please contact via PM.

Please bid quickly as i will select prior to bid expiry.

Thanks,

Sam..

Beceriler: Javascript, JSP, PHP

Daha fazlasını görün: w-9 questions, need coder quick, it works global, w-9 what is it, copy of w-9, urgent need php, like tw, jpeg to pdf, image clipping, height bid project, clipping, clipping image, fpdf library php, share save, urgent line, php insert select, crop php, function jsp, php image crop save, need help php script, help process, pdf jpg code, php jpg pdf, php pdf jpg, image crop php

İşveren Hakkında:
( 266 değerlendirme ) Las Vegas, United Arab Emirates

Proje NO: #688605