Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-04-15 18:03:30
- blastocyst
- Member
- Registered: 2008-03-17
- Posts: 12
How do I disable automatic thumbnail generation?
See subject. Every time I upload an image it creates a thumbnail that’s 425 px wide with no specified height. I don’t have any plugins installed.
Offline
#2 2008-04-15 18:32:45
- blastocyst
- Member
- Registered: 2008-03-17
- Posts: 12
Re: How do I disable automatic thumbnail generation?
should be very easy =(
Offline
#3 2008-04-15 18:43:04
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I disable automatic thumbnail generation?
What happens if you enter 0 (zero) in the width and height fields and then hit ‘create thumbnail’?
The width and height values, and whether or not to crop the image, are remembered, so with every new image upload a thumbnail will be created based on the settings that were used the last time.
Offline
#4 2008-04-15 18:55:02
- blastocyst
- Member
- Registered: 2008-03-17
- Posts: 12
Re: How do I disable automatic thumbnail generation?
That does not work. It ignores the 0 value and goes back to 425.
Offline
#5 2008-04-15 18:57:17
- blastocyst
- Member
- Registered: 2008-03-17
- Posts: 12
Re: How do I disable automatic thumbnail generation?
It also returns this error message in the upper left : Invalid width or height (0)/(0)
Offline
#6 2008-04-15 19:07:11
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: How do I disable automatic thumbnail generation?
What if you don’t enter any values in both fields and then hit ‘create thumbnail’??
Last edited by masa (2008-04-15 19:07:35)
Offline
#7 2008-04-15 19:16:38
- blastocyst
- Member
- Registered: 2008-03-17
- Posts: 12
Re: How do I disable automatic thumbnail generation?
Also invalid
Offline
Re: How do I disable automatic thumbnail generation?
You can change the thumb_w (width) and thumb_h (height) settings to zero in the advanced preferences tab.
Offline
Re: How do I disable automatic thumbnail generation?
Ruud, I don’t see that option in 4.06 under the Basic or Advanced tab. Where is it supposed to be?
Offline
#10 2008-04-15 19:28:49
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I disable automatic thumbnail generation?
ruud wrote:
in the advanced preferences tab.
I had looked there before posting my reply, but I don’t see it either :( Not in upgraded 4.0.6 installs, and not in a fresh install.
Offline
Re: How do I disable automatic thumbnail generation?
Hmm… strange. I still have the preference, but I upgraded all the way from 4.0.3
If you have access to PHPmyAdmin, you can run this SQL query to disable thumbnail generation:
update txp_prefs set val='' where name='thumb_w' or name='thumb_h';
For future TXP versions, what do you all think is the best solution: make thumb_w/h visible in the preferences again or simply allow people to set the thumbnail dimensions to 0 × 0 pixels and let that disable thumbnail generation instead of giving an ‘invalid dimensions’ error?
Offline
#12 2008-04-15 19:51:18
- blastocyst
- Member
- Registered: 2008-03-17
- Posts: 12
Re: How do I disable automatic thumbnail generation?
there ought to be an option in the images tab to set “automatically create thumbnails” yes or no
Offline