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
2 answers

Help determining thumnail creation method

I've been exploring ideas how to create thumbnails from a user upload and store them in a directory and then use that thumbnail to display the original. I've been reading posts about phpthumb(), wideimage, imagemagick, and php's GD. I need some…
Ronedog
  • 2,313
  • 8
  • 43
  • 85
0
votes
2 answers

How to integrate php thumbnail creator with multiple image uploader script?

I have this code to upload multiple image. It is working fine.
user2978381
  • 145
  • 1
  • 2
  • 14
0
votes
0 answers

Outputting an image in modx with phpthumbof and runsnippet()

Within Modx Revolution, I'm trying to get phpthumb to work from within a snippet I'm writing - I think I have almost all the pieces, but I've a hunch that maybe I'm not formatting the image filepath correctly. This is the code I have: $input =…
verism
  • 1,106
  • 1
  • 12
  • 35
0
votes
1 answer

How to generate image thumbnails in PHP in 300X200 dimensions?

I'm using the below code to generate image thumbnails in PHP. It generates the thumbnails proportional to the image height and width dimensions. make_thumb('images/image.jpg', 'images-generated-thumbs/7.jpg', 300, 200); function make_thumb($src,…
Sami
  • 1,473
  • 1
  • 17
  • 37
0
votes
1 answer

modx phpthumbof returns strange image

I try to use the phpthumbof modx addon in an getResources template chunk as a snippet, like shown in the code below. But it always gives me back this strange image with its version and the text "error messages disables" in red color and on a violet…
Thomas Venturini
  • 3,500
  • 4
  • 34
  • 43
0
votes
1 answer

PHP gallery autogenerated thumb to open larger image in

Sorry in advance if it's a stupid question, but I'm a complete newbie and this is the first bit of PHP I've ever looked at in my life. I've taken the code from this web post about Creating an image gallery from a folder of images automatically and…
kcullen
  • 5
  • 4
0
votes
1 answer

How to install phpThumb in codeigniter framework

How to install phpThumb in codeigniter framework. I have placed the files like below floder…
Aaru
  • 803
  • 4
  • 13
  • 29
0
votes
0 answers

phpthumb error for config_document_root no phpthumb.config.php file

I'm getting an error of a duplicatated directory [09-Oct-2013 07:51:31] PHP Warning: getimagesize(/home3/username/public_html/mywebsite//mywebsite/assets/content/images/slideshow/slider1.jpg) [
Catalyph
  • 1
  • 2
0
votes
1 answer

Phpthumbof forcefully resizes small images

If I give phpthumbof an image with size of 78x78 and give these parameters: w=283&h=248&f=png&zc=1 it returns pixelated upresized image. Source image: http://srv39820.ht-test.ru/28-5.icon-vk.png Result image:…
0
votes
1 answer

Any way to run the latest version of phpThumb with escapeshellarg disabled?

My web hosting account recently got hacked through a phpThumb exploit so I had to upgrade it to the last version. Unfortunatelly I can't run this last version because my web hosting doesn't have escapeshellarg() enabled. I asked the sysadmin to…
MACC
  • 315
  • 1
  • 4
  • 13
0
votes
0 answers

phpthumb() library unable to create external images thumbnail

I am trying to generate thumbnail on the fly using phpThumb() library. It is working fine for those images store in my server. But it is not generating thumbnail for external images. Reference :-…
Roopendra
  • 7,674
  • 16
  • 65
  • 92
0
votes
1 answer

PhpThumb Errors

Trying to get phpthumb to work, but with a bit of issue at the moment. Got the simple demo to work, so I might be missing something on my function, but just can`t find what :( The variables in this function have the following…
Emerson
  • 935
  • 4
  • 13
  • 27
0
votes
1 answer

phpThumb resize to fixed height but dynamic width?

I'm using phpThumb (mainly because of the excellent reflection addon) and need to resize an image to a specific height, and the width be taken care of automatically (dynamic). Looking at the documentation, it seems to require both width and height…
iltdev
  • 1,789
  • 9
  • 27
  • 51
0
votes
1 answer

phpThumb is not setting parameter – fltr[] usm

I am using Brett's Mr. PHP thumb caching script along with phpThumb to create my thumbs. It works extremely well, except for one thing... I cannot get it to set and process the UnSharpMask filter. The relevant part of the script looks like this: //…
JJ.
  • 79
  • 8
0
votes
1 answer

PHPThumb GdThumb, resize 2 variations of image and save string to S3 not working

I can not get the code below to work. I am saving the original image to my S3 bucket, and then resizing 2 variations of the same image and sending the string generated by PHPThumb_GdThumb to S3 but the resized images have 0kb and contain error. The…
Pez
  • 1
  • 2