Devam Ediyor

494174 PHP thumbnail creation script (imagecopyresampled fix).

I have a PHP script that generates thumbs from images.

Currently this is how it works:

Folder Structure:

/gallery

/gallery/[url removed, login to view]

/gallery/images/[url removed, login to view]

/gallery/thumbs/[url removed, login to view]

This creates thumbs that are X in pre-defined width, then the height is automatic to keep the relative aspect ratio.

I want it to become:

Folder Structure:

/gallery

/gallery/[url removed, login to view]

/gallery/images/[url removed, login to view]

/gallery/thumbs/[url removed, login to view]

Where I define both WIDTH and HEIGHT, example: 138x180 and it automatically center crops the image. No matter if it's a horizontal or vertical image (landscape or portrait). I just want the thumbnail to give a quick and fast preview of the image but it must be a center crop and the thumbnail size must be defined static. (no auto height or width).

Also, if you can find a way to optimize the code, I may pay an extra bonus, but this is not the primary objective. The primary objective is a imagecopyresampled fix I believe.

Beceriler: Her şey Kabul, PHP, Kabuk Betiği

Daha fazlasını görün: define structure, example shell script, shell script or, thumbnail, crop auto, shell php image, optimize php code, auto creation, thumbnail image gallery, preview crop, image thumbs, vertical php, crop php, thumbs image, fast thumbnail creation, php thumbnail, objective script, gallery image folder, script code auto, image crop php, script height, auto code script, code landscape, auto center, thumbnail preview

İşveren Hakkında:
( 9 değerlendirme )

Proje NO: #2240088

Seçilen:

boker

can be done, thanks

0 gün içinde 10$ USD
(17 Değerlendirme)
3.2