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: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
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
Re: How do I disable automatic thumbnail generation?
Yes. Maybe just a checkbox next to “crop” to disable for each image during upload. Once disabled it remains disabled for subsequent uploads until the user requires a thumb at which point they uncheck it and set their required sizes. Thumbnails can be created as a separate operation so I don’t think this would be a problem.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: How do I disable automatic thumbnail generation?
ruud wrote:
allow people to set the thumbnail dimensions to 0 × 0 pixels and let that disable thumbnail generation
I vote for this one. Keeps the functionality in one place instead of having to hunt for prefs to do the same thing.
EDIT: Stuart’s suggestion has merit too though.
Last edited by Bloke (2008-04-15 20:02:47)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: How do I disable automatic thumbnail generation?
I like the idea of having a preference for setting thumbnail generation to on or off. I also think all preferences should be in the same place, so my vote would be for it to be in the Preferences tab.
Offline