Questions tagged [phpthumb]

phpThumb is a PHP library used to create thumbnails from images on the fly.

phpThumb() uses the GD library to create thumbnails from images (JPEG, PNG, GIF, BMP, etc) on the fly. The output size is configurable (can be larger or smaller than the source), and the source may be the entire image or only a portion of the original image.

116 questions
1
vote
1 answer

PhpThumb error - PHP Fatal error: Class 'PhpThumb' not found

I had downloaded from official website, uploaded to my hosting server. I got this error message. [08-Mar-2012 21:26:07] PHP Fatal error: Class 'PhpThumb' not found in /home/sokad /public_html/libs/phpthumb/thumb_plugins/gd_reflection.inc.php on…
Kakilang
  • 11
  • 4
1
vote
1 answer

How do you make thumbnails on upload with phpthumb?

I'm having a very problematic error with phpthumb: http://phpthumb.gxdlabs.com/ So basically, I have a form which uploads a profile picture. The uploading seems to work because it uploads the image in the directory. The problem is that it doesn't…
Mico Abrina
  • 507
  • 1
  • 7
  • 25
1
vote
3 answers

How to use URLs that contain ampersands (&) with phpTumb?

Let's say I have the following URL: pic.php?t=1&p=23 When I try phpThumb.php?src=/pic.php?t=1&p=23, I get Forbidden parameter: p. Anyone knows if there's a way around it?
Lior
  • 5,454
  • 8
  • 30
  • 38
1
vote
0 answers

phpThumb - Compressing GIF is loosing its' animation

I've been trying to use phpThumb to compress images including GIF images: $phpThumb->resetObject(); $phpThumb->setSourceData(file_get_contents('mydir/'.date('Y',$up_ts).'/'.date('m',$up_ts).'/'.$up_old_name)); …
zzz
  • 11
  • 1
1
vote
2 answers

phpThumb shows me "usage" example even though I've supplied the correct input

phpThumb is a PHP library that converts large images to image thumbnails and caches the result. It takes such a syntax: http://domain.com/phpThumb.php?src=/images/image.jpg However in my web application I'm following a strict MVC architecture, so I…
Hubro
  • 56,214
  • 69
  • 228
  • 381
1
vote
1 answer

Redirect old links example.com/oscthumb.php?src=/images/3-A_in.jpg&w=960&h=647&f=jpg&q=95&hash=6b

I have indexed several images that I need to redirect using .htaccess The old urls are like: example.com/oscthumb.php?src=/images/3-A_in.jpg&w=960&h=647&f=jpg&q=95&hash=6b884jduhh3h8737h and they have to…
1
vote
3 answers

A complete image manupulation solution in classical ASP

Does anyone have a past experience on implementing a complete image manipulation solution in classical ASP? I need a solution where a user can: Upload an image The uploded image is stored on the filesystem (inside or outside wwwroot) The image is…
Salman A
  • 262,204
  • 82
  • 430
  • 521
1
vote
0 answers

PHPThumb generates a black background on transparent PDFS

Within the last few months our generated thumbnails have been replacing transparent PDF areas with just a black area. EX: Generated Image Has anyone ran into an issue with this? Not sure if this is a phpthumb or an imagemagic issue. Thanks for any…
1
vote
1 answer

How to integrate phpThumb into a CodeIgniter application's architecture?

I'd like to use phpThumb ( http://phpthumb.sourceforge.net/ ) on my view layer to automatically size some images. What's the recommended way to integrate phpThumb into the CodeIgniter architecture? Has anyone done this already and found that you…
k00k
  • 17,314
  • 13
  • 59
  • 86
1
vote
0 answers

phpThumb/Imagemagick convert performance issue for concurrent requests

We are using phpThumb for image resize, crop and other supported operations in PhpThumb. We have configured PhpThumb to use ImageMagick(convert in turn). However, we are observing that convert command is taking too much time and hence it's degrading…
1
vote
4 answers

How to generate Thumbnails with phpThumb and save it into a file?

i wan't to know how to generate thumbnails with phpThumb Class, with an array with file paths already. And then Save the result of each image on other path but with the same name. Thank you all ;) EDIT: I have my code something like this: echo…
cusspvz
  • 5,143
  • 7
  • 30
  • 45
1
vote
1 answer

phpThumb (imagecreatefromjpeg) on white images generates #fefefe stripes

I have a big problem generating thumbs with phpThumb (or any other image resizing library) First let me show you the visible problem: http://aep.w3mt.biz/content/mediacontent/products/427/aztec-pearls-1.jpg_gz.jpg (this is the generated…
Lucian Vasile
  • 482
  • 5
  • 17
1
vote
2 answers

MeioUpload isn't creating thumbnails in cakephp 2.4

I'm using meioupload and everything works well till I try to make thumbnails. Then I can see only kind of phpThumb error message which says "C:/wamp/cakephp/vendors/phpTmub/img/uploads/product/filename/image.png" does not exist I'm new with cakePHP…
Jan Omacka
  • 1,810
  • 4
  • 20
  • 27
1
vote
1 answer

phpthumb is creating the image but not showing it (nginx)

I'm trying to get phpthumb to work on my wife's wordpress site . http://downtherabbithole.co.uk/ If you look at the second post the image is not…
xencored
  • 15
  • 4
1
vote
3 answers

phpThumb cannot find ImageMagick / Imagick

I'm having a problem with phpThumb. It says in the documentation that to get the best out of it, use ImageMagick / Imagick. I've got this installed on the Server (running Centos 5.1), and can run convert --version and get the right info back. I…
fistameeny
  • 1,048
  • 2
  • 14
  • 27