Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#49 2004-07-27 22:59:57
- Chris
- Member
- Registered: 2004-02-26
- Posts: 22
Re: mdp_Automatic Thumbnail's
This mod is great! Thanks Greenrift.
I have a request for a future version. Do you think you could you add the ability to define several different image sizes to resize to and make them selectable via radio buttons next to the image upload form? I suppose the same could be done for the thumbs.
Offline
#50 2004-08-03 18:59:08
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: mdp_Automatic Thumbnail's
Greenrift or anyone in the know, how do you refernece the thumbnail using textile/textpattern/xhtml?
Thanks, Lee.
Offline
#51 2004-08-22 20:08:44
- omar
- New Member
- Registered: 2004-02-24
- Posts: 4
Re: mdp_Automatic Thumbnail's
In g1.19 there is now a [txp:thumbnail id=“n”] tag that does what you want.
Last edited by omar (2004-08-23 02:59:08)
Offline
Re: mdp_Automatic Thumbnail's
I just installed this one (v0.51), and it doesn’t seem to be making thumbnails. It doesn’t do it on replace either. I’m running on textdrive.
define(‘RT_IMAGICK’,1); // Setting to zero causes hack to use the GD Library. define(‘RT_RESIZE’,640); // New width of image, in pixels. define(‘RT_TW’,150); // Width of thumbnail, in pixels. Set to zero to fix height. define(‘RT_TH’,0); // Height of thumbnail, in pixels. Set to zero to fix width.Any ideas? It creates the main image, but not the thumb.
UPDATE: I changed to GD and it worked. Any ideas why it’s not working with ImageMagick on Textdrive?
Alvin..
Last edited by poeman (2004-09-02 18:16:36)
Offline
Re: mdp_Automatic Thumbnail's
> poeman wrote:
> I just installed this one (v0.51), and it doesn’t seem to be making thumbnails. It doesn’t do it on replace either. I’m running on textdrive.
define(‘RT_IMAGICK’,1); // Setting to zero causes hack to use the GD Library. define(‘RT_RESIZE’,640); // New width of image, in pixels. define(‘RT_TW’,150); // Width of thumbnail, in pixels. Set to zero to fix height. define(‘RT_TH’,0); // Height of thumbnail, in pixels. Set to zero to fix width.Any ideas? It creates the main image, but not the thumb.
UPDATE: I changed to GD and it worked. Any ideas why it’s not working with ImageMagick on Textdrive?
Alvin..
I really need to update this thing to a new version I’ve had sitting on my computer. I’ll try to do that later tonight.
Offline
Re: mdp_Automatic Thumbnail's
Finally started to actually need this kind of a plugin for a project. However, I miss the feature to set the maximum width or height size for both pictures and thumbnails. I. e. keep the aspect ratio and resize so that the result wouldn’t exceed the maximum in either direction.
This is what I see as crucial in terms of keeping the perceived image size uniform throughout the site.
Who’s gonna textdrive you home tonight?
Offline
#55 2004-09-18 17:30:34
- littleears
- New Member
- From: Oakland, CA, USA
- Registered: 2004-03-04
- Posts: 2
Re: mdp_Automatic Thumbnail's
This is a great feature. Thanks very much.
I think there is a maximum image upload size somewhere. I’ve been trying to upload an image that is 1.5M. The command appears to complete, but no image is added to the list. Nor do I see any error messages in any logs.
If I upload a smaller image it works fine.
How can I adjust this size issue? Also, is there a log that would display what is happening?
Thanks
Offline
#56 2004-09-29 00:34:54
- rajo
- Member
- Registered: 2004-03-13
- Posts: 43
Re: mdp_Automatic Thumbnail's
Has anyone had any success using this plugin/hack with 1.0rc1?
Offline
Re: mdp_Automatic Thumbnail's
No idea if it works with 1.0rc1, shortly before 1.0 is released I’ll update my hack.
litteears: Most likely the problem is that GD or ImageMagick took too long to run through your file and PHP timed out. Though, that wouldn’t normally happen with a 1.5MB image.
There isn’t any log or anything, but some better error reporting is going to be included when I update stuff.
Offline
#58 2004-09-29 11:33:34
- Chris
- Member
- Registered: 2004-02-26
- Posts: 22
Re: mdp_Automatic Thumbnail's
A fair few things seem to have changed in txp_image.php when I compared the files. I wasn’t brave enough to see if the old hack still worked though.
Thanks for this hack Greenrift and the future update – it’s one of my favourites.
Offline
Re: mdp_Automatic Thumbnail's
It works fine with my install of rc1.
http://ww.spreeblick.de, a weblog from Berlin
Offline
#60 2004-10-03 18:05:01
- littleears
- New Member
- From: Oakland, CA, USA
- Registered: 2004-03-04
- Posts: 2
Re: mdp_Automatic Thumbnail's
littleears wrote:
I think there is a maximum image upload size somewhere. I’ve been trying to upload an image that is 1.5M. The command appears to complete, but no image is added to the list. Nor do I see any error messages in any logs.
If I upload a smaller image it works fine.
How can I adjust this size issue? Also, is there a log that would display what is happening?
I found it. textpattern/include/txp_image.php has the line
<pre>
<code>
hInput(‘MAX_FILE_SIZE’,‘1000000’).
</code>
</pre>
Changed this to 4M and I can now upload 2M images.
Perhaps this should be a configuration value?
-Kelly
Offline