Lines Matching refs:to

27 A: Please run /demo/demo.check.php to find out how your server
29 suggestions on what to change for improved performance.
34 In general, if you just want to call phpThumb.php in the
36 then there is no problem, you're free to do this no matter
56 permission on your server to do so), or (better yet) install
59 images manually (with your favourite image editor) to a size
67 Q: Is there are way to determine the new height and width of the
70 way to pass on any additional info such as width/height.
86 A: You missed the call to GenerateThumbnail() before
91 Q: I'm trying to save a phpThumb-generated image in Internet
99 in the areas that are supposed to be transparent.
116 get uploaded to "/tmp/<file>" or similar) then you will have
117 to configure 'allow_src_above_docroot' to true.
119 permission to the file/directory you're reading from
123 A: phpThumb.php is easier to use (less coding) for basic uses.
125 to have its own caching code. If you just want to display a
127 If you want to render one (or more) thumbnails to static
131 you need to manually set all configuration options because
132 phpThumb.config.php has NO effect. So, to repeat:
133 **always use phpThumb.php unless you NEED to have an object**
136 Q: The first time I go to a page which contains thumbnails I
143 Note: There were some maybe-undefined variables prior to
144 v1.7.9 that contributed to this behavior. If you notice
149 Q: Are there any front-end GUI interfaces to phpThumb()?
163 A: If you're using GD v1.x, no way around it. Upgrade to GD v2.x
167 A: You may be trying to resize images larger than the available
170 160x120 (so if you resize it to 640x480 it will look very bad).
177 Q: Can I save the generated thumbnail to a file?
178 A: Yes, there are several ways to do so; the best way is to call
179 phpThumb as an object and call RenderToFile() to save the
180 thumbnail to whatever filename you want.
182 The other way is to use the 'file' parameter (see
189 domain that it is running on. To allow it to make thumbnails
199 Q: Is it possible to set the parameters (like w/h/fltr[]) in
202 phpThumb.config.php You'll want to set
206 You may also want to investigate
209 for how to call images in HighSecurity mode)
212 Q: Is there a way to use phpThumb() object to create thumbnails
217 problem of passing parameters to the file, whether it's
221 so you then don't have to pass them for each image. If you
224 (you'll need to generate the <img> tags with phpThumbURL()
228 phpThumb/PHP has read access to the directory). The other
229 option is to put your source images in a MySQL database
231 parameters in phpThumb.config.php to pull your source images
232 from the database. That way it's impossible to retrieve the
234 enabled, then nobody can modify the parameters to view
235 anything except what you want to show. So, yes, it's possible
236 to use your own object, but it's probably better to use
239 to deal with that if you create your own object.
242 Q: How do I write the output thumbnail back to a database instead
243 of outputting to the browser or a file?
244 A: See /demo/phpThumb.demo.object.php Basically you need to call
259 but if cache_default_only_suffix is enabled, cache filenames are simplified to
270 (in actual fact the canvas size is enlarged to fit the rotated image in it).
275 A: Your PHP was probably installed as an Apache module. If so, you have to set
278 Then you have to restart Apache.
283 take effect, or you can manually walk through your source images to delete and find
296 Q: Is it safe to delete cache files?
297 A: Yes, it is safe to delete any cache files and/or directories. phpThumb will
302 Q: How can I find the filename that phpThumb.php will use to
304 A: It's not easily possible to get the cache filename. You can
305 see the method used to calculate it in SetCacheFilename()
307 to know where an image will be rendered to, it may be
308 easier and better to call phpThumb as an object and handle
315 installed. The AFPL version of GhostScript seems to work
319 You may want to use the "sfn" (Source Frame Number)
320 parameter of phpThumb to specify which page to thumbnail.
327 attempt to generate thumbnails from webpages include:
337 can increase; dithered areas compress very poorly compared to
343 a script with parameters to display images? For example:
346 A: Yes, you should be able to use phpThumb like that no problem.
347 If the source image is on a different server you need to set
348 $PHPTHUMB_CONFIG['nohotlink_valid_domains'] to contain the source
351 is set to false to allow creating source images from any domain/IP.
352 You will also need to properly encode the image source (using PHP
361 you can send PayPal donations directly to info@silisoftware.com