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

How to use phpThumb in zf2

I have used phpthumb in zf1 but not sure how to use in zf2, looks like whole process is different, can anyone pls help me ?
ktm
  • 6,025
  • 24
  • 69
  • 95
1
vote
1 answer

phpthumb & htaccess

if i have an image (/uploads/image.jpg), and i have a script (/phpthumb/phpThumb.php) that resizes the image and shows it (not saving!). I print the image like this: Is…
1
vote
0 answers

phpThumb- version 2003- How do I sort images on Linux

I originally tested this software on a Windows 2000 server. The problem I have now is that it has been ported to a hosting company that uses Linux. The images were stored numerically as in: 00.jpg/01/jpg/02.jpg etc. These were sorted AND displayed…
Nader
  • 11
  • 1
1
vote
2 answers

Cropping Images with PHPThumb

PHPThumb doesn't have very clear documentation of how to crop images. I HAVE been trying to crop some images to a ratio of 6.6 : 10 i.e I have images which are 1280 by 854, I don't want the height changed but I want the width reduced so that the…
William The Dev
  • 505
  • 1
  • 6
  • 16
1
vote
0 answers

php image thumb generator giving error on this image

I'm using the following function to create image thumbs, but for some reason it doesn't work on the following image: http://images.fanpop.com/images/image_uploads/zebra-zebras-52796_800_600.jpg Can anyone figure out why? Here's the…
Phil
  • 1,719
  • 6
  • 21
  • 36
1
vote
1 answer

phpthumb remove cache for specific file

I'm using the library phpthumb for resizing image on the fly on a personal project. I give the users the abilities to modify the image they have uploaded and rotate it. I need to purge the phpthumb cache of the specific image. How can i do…
Arnaud Ncy
  • 492
  • 2
  • 5
  • 19
1
vote
3 answers

php user image upload create specified folder unique image names

I'm (a newbie in php) still working on a time off project and another problem came up, for which I can't find a solution. Therefore I hope u guys can help me! Worked great the last time I posted something on here! I really appreciate your help...thx…
Fab
  • 81
  • 1
  • 4
  • 13
0
votes
1 answer

How to return the generated image by phpThumb and not the original one with code appended?

I'm generating images through phpThumb on my Wordpress based website using Magic Fields 2 but I'm having problems posting those images to We Heart It and other websites since they don't recognize it as an image due to all the code…
MACC
  • 315
  • 1
  • 4
  • 13
0
votes
2 answers

wrap phpThumb in a CodeIgniter controller method

On Codeigniter, I'm using phpThumb to generate images. I didn't use the built-in CI image library because it couldn't do the "zoom-crop" feature of phpThumb, which I badly need (ability to create thumbnails of the same size regardless of their…
Obay
  • 3,135
  • 15
  • 55
  • 78
0
votes
0 answers

phpthumb cache on AWS

I'm using phpthumb to generate thumbnails from Flickr photos for a site hosted on AWS (free tier). The thumbnails-cache are generated and stored into directories in the following folders: The problem is that at any given time, the number of…
Yeti
  • 5,628
  • 9
  • 45
  • 71
0
votes
1 answer

What is the best to use phpthumb?

I currently use phpthumb to generate thumbnails for profile pictures. http://phpthumb.gxdlabs.com/ This is my current method:
Mico Abrina
  • 507
  • 1
  • 7
  • 25
0
votes
1 answer

preg_match fails after ImageMagick update

I have a problem with preg_match $versionstring[1] = 'Version: ImageMagick 6.4.6 2010-01-20 Q8 OpenMP http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC'; preg_match('#^Version: [^0-9]*([ 0-9\\.\\:Q/\\-]+)…
Paweł
  • 2,144
  • 1
  • 18
  • 25
0
votes
1 answer

Phpthumb non-exisiting url redirection with .htaccess

Is it possible to redirect if the image specified at url "src=nothere" is not an actual path I need to redierct to a no-existing image or something similar. I have a problem in deciding on the regex to be used here ? And how to know if its not…
Gayan Hewa
  • 2,277
  • 4
  • 22
  • 41
0
votes
1 answer

Tearing eyeballs out, PHPThumb class on shared hosting is failing

UPDATE & SOLUTION: Everyone, for whoever has this problem in the future, I figured out how to solve it. If you use the PHPThumb class, you MUST import the settings from the config file, as it will not do this otherwise. I discovered this by…
Luke James Emery
  • 489
  • 4
  • 20
0
votes
1 answer

PDF Thumbnail shell command problem - PHP

I have a set of 1000 pdf in my server. Now, i want to create a thumbnail for each pdf. The PDF NAME include spaces and special characters(This is a joomla component - Docman, So i could not customize this component to create a file name without…
hjaffer2001
  • 933
  • 6
  • 18
  • 38