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

PHP - phpthumb class - resize image on the fly from URL

I would like to create a script which will be create a bigger or smaller image (all images in my script should be 170 x 200 px - if picture is bigger, script will create a smaller picture. If picture is smaller, script will create a bigger image). I…
NewbieUser
  • 191
  • 2
  • 10
0
votes
1 answer

modx + phpthumbof = {"success":false,"code":401}

I try to get phpthumbofworking on all my contexts. Since I had no luck with the snippet or the output-filter/-modifier I used the direct link to the phpthumb…
Thomas Venturini
  • 3,500
  • 4
  • 34
  • 43
0
votes
1 answer

phpThumb neither display a thumbnail nor an error message?

I',m running a PHP website on nginx and use phpthumb to generate thumbnail images. This web site is exposed via amazon-cloud front. The issue here is that the phpthumb does not return the thumbnail image, instead it returns the default…
Asanga Dewaguru
  • 1,058
  • 2
  • 16
  • 31
0
votes
1 answer

phpThumb - change watermark size

I'm using phpThumb in a script to clean my images and add a watermark to them. We have images of very different sizes (from 100px width to 800px), so no matter what watermark image I use, it's either going to look too small or too big on the image.…
Ali
  • 603
  • 2
  • 6
  • 17
0
votes
2 answers

PHP thumbnail generator not processing thumbnails

I am using a PHP Thumbnail Generating script that I have used without issue many times in the past. I am currently using it without issue on the very same domain that I am now having problems. The script is processing to a point. It is generating…
Mitey
  • 19
  • 3
0
votes
2 answers

How to save a phpthumb output into a file?

I am trying to save PhpThumb output. As what I could find on-line was not sufficient or too complex, I would like to ask if any one knows how to…
ori
  • 43
  • 1
  • 5
0
votes
1 answer

phpThumb - is it possible to add more than one filter using the setParameter method?

I'm building a thumbnail constructor with phpThumb (the James Heinrich implementation available here). Basically, I'm encapsulating the phpThumb class to build thumbnails with a syntax like this: $thumbnail =…
Julio María Meca Hansen
  • 1,303
  • 1
  • 17
  • 37
0
votes
1 answer

What's the correct way to add watermarks on the fly in modx revo using phpthumbof

Using modx revo (2.3.3-pl). I'd like to use phpthumbof snippet to add watermarks on the fly to the images referenced. In other words I want to simply upload images to a certain location and then have them referenced them via phpthumbof snippet to…
Etush
  • 3
  • 3
0
votes
3 answers

Modx phpthumbof have no effect on image

This construction returns image with original size I tried create phpthumbof/cache with 777 I tried reinstall phpthumbof ImageMagick installed in php "phpthumb:...allow...docroot..." enabled in…
Alex
  • 3
  • 3
0
votes
1 answer

Resize with PHPTumb

I've got a problem with PHPThumb, my resize function doesn't work. This function must resize an image to the maxi dimension x or y of a DIV : if($thumb_x_value>$thumb_y_value) { $thumb->resize($thumb_x_value,…
Pepi San
  • 93
  • 1
  • 10
0
votes
1 answer

PHPthumbFactory file not found on upload

library: https://github.com/masterexploder/PHPThumb/wiki/Basic-Usage i am using the PhpThumbFactory library to crop and upload an image. the error im receiving is this: Fatal error: Uncaught exception 'Exception' with message 'Image file not found:…
michael
  • 329
  • 2
  • 4
  • 10
0
votes
1 answer

Modx pthumb how to display image height properly

i've tried to ouput this in a chunk : [[pthumb? &input=`[[+image]]` &options=`w=320` &toPlaceholder=`thumb`]] [[+thumb.height]]` It displays only once if I refresh the page, it does not appear anymore. Question is there a solid way to display the…
Sylvain Le Bihan
  • 163
  • 1
  • 2
  • 13
0
votes
1 answer

how to use php thumb in zend framework 2

I am using webino/WebinoImageThumb module to generate thumbnail in my zend 2 application but it shows an error "Fatal error: Class 'GD' not found ..." Is there is any other module or library available to do this like php thumb etc. Please help.
R.K.Saini
  • 2,678
  • 1
  • 18
  • 25
0
votes
1 answer

Why is modx getResources and phpthumbof showing the same thumb nail for different resources?

I have a getResources call that shows 6 items on my homepage: [[!getResources? &tpl=`homepageInventoryCellTpl` &parents=`4` &resources=`-33` &depth=`10` &limit=`6` &includeContent=`1` &includeTVs=`1` &processTVs=`0` …
Sean Kimball
  • 4,506
  • 9
  • 42
  • 73
0
votes
2 answers

PHP script giving no such file or directory error

I'm trying to use this php thumbnail generator http://phpthumb.gxdlabs.com/ and i keep getting the error below. Warning: imagejpeg() [function.imagejpeg]: Unable to open 'Images/uploaded/thumbnails/' for writing: No such file or directory in…
Catfish
  • 18,876
  • 54
  • 209
  • 353