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
0
votes
1 answer

Cached thumbs does not show up first time

Im using phpThumb with mrPHPs cache script. When thumb is generated (first load), it does not show in browser - but all next loads are okay. This is really frustrating for clients, but it seems I can not find the solution. If i check image with…
Anze
  • 119
  • 2
  • 9
-1
votes
2 answers

PhpThumb requires so much disk space

I am using phpthumb: http://phpthumb.sourceforge.net/ I have about 500Mb of images on my server and phpthumb creates 2 little thumbs for each image ( 100x100 300x300 ). The problem is that the phpthumb folder ( with cached images ) is 7GB. So, how…
xRobot
  • 25,579
  • 69
  • 184
  • 304
-1
votes
2 answers

how would I insert "_thumb" before file extension

How would I insert "_thumb" before file extension ? for example 123.jpg into 123_thumb.jpg please answer my question, it's been 3 days i didn't find the right way.. thank you this is my view :
-1
votes
1 answer

How to use phpThumb with laravel?

Sure, phpThumb can be installed using composer. But what's next? Am I supposed to store phpThumb's config at vendor/james-heinrich/phpthumb/phpThumb.config.php? What exactly should I do? It's not documented.
x-yuri
  • 16,722
  • 15
  • 114
  • 161
-1
votes
1 answer

No connection could be made error in phpThumb()

I'm using phpThunmb to display images from external link. for some images, such type of error occurred as below. i tried to get the header information of that image as below.. $headers = get_headers($external_image_url); but the result was empty.…
Sujan Shrestha
  • 612
  • 3
  • 13
  • 34
-1
votes
1 answer

phpThumb creating corrupted/oversized thumbnails

I'm having a very strange problem with the phpThumb library, for some reason when the thumbnails are generated they are being created very large in size (550k for a 150x65 image) and in many cases do not load at all. I have narrowed the issue down…
rattybag
  • 381
  • 2
  • 8
-1
votes
1 answer

phpThumb - Prevent and avoid cropping – fit to maxwidth/maxheight?

I am fixing up a website that uses phpThumb to generate thumbnails. The documentation/readme is available here. I am trying to resize the images so that they fit within 1200x1200 pixels, but maintain their aspect ratio and are not cropped. However,…
waffl
  • 5,179
  • 10
  • 73
  • 123
-1
votes
1 answer

How to save thumb with phpthumb?

require_once '../ThumbLib.inc.php'; $thumb = PhpThumbFactory::create('test.jpg'); $thumb->resize(100, 100)->save('/img/new_thumb.jpg'); $thumb->show(); I set 777 permission to img folder but I get this error: Fatal error: Uncaught exception…
xRobot
  • 25,579
  • 69
  • 184
  • 304
-1
votes
3 answers

integrating phpthumb in zend framework

Is there a easy way to integrate phpthumb in zend framework ? Please help me with sample code if possible, thanks
ktm
  • 6,025
  • 24
  • 69
  • 95
-2
votes
1 answer

phpthumb not working with bmp file

I am creating thumbnails of image using phpthumb, its working fine for other formates except bmp file. The Method GenerateThumbnail() returning false with bmp image. Do I need to set any parameter for the this.
Sudhir
  • 1
  • 2
-3
votes
1 answer

errors keep cropping up implementing a basic phpthumb script...Permission denied on line 1070 of GdThumb.in.php

I wanted a script that automatically generates thumbnails when from a folder full of larger images. I've ran into some problems implementing it. I was getting some errors early on because I hadn't included all the phpthumb files i needed, but now…
expiredninja
  • 1,397
  • 4
  • 25
  • 45
1 2 3 4 5 6 7
8