Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-10-19 22:02:17
- blurb
- New Member
- Registered: 2006-03-02
- Posts: 8
4.0.4 Thumbnail creation broken
After upgrading to 4.0.4, it looks like there’s no longer the sweet thumbnail creator/editor in TXP. I don’t see the option to “save” thumbnail settings that is in the FAQ, either. I searched the forums and googled, but couldn’t find any others with thumbnail issues after upgrading.
Is it my server or does 4.0.4 no longer support making thumbnails?
Offline
#2 2006-10-19 22:15:50
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 4.0.4 Thumbnail creation broken
? Yes, it’s still there.
Thumbnail settings are not supposed to be visible in the prefs, they automatically remember what you last used.
Offline
#3 2006-10-19 23:50:07
- blurb
- New Member
- Registered: 2006-03-02
- Posts: 8
Re: 4.0.4 Thumbnail creation broken
Thanks for the quick response.
The settings I follow, but the fields to determine how big to make the thumbnail and the update button are no longer displaying in the admin.
I’m upgrading from 4.0.3 to 4.0.4 if that’s any help. I turned off the single plug-in I’m using (zem_article_image) and it made no difference.
I’m going to try reuploading the files just to see if that makes a difference.
Offline
Re: 4.0.4 Thumbnail creation broken
There was a change in 4.0.4 which hides these user interface elements in case PHP lacks the GD imaging functions. Maybe that check produces a false positive in your case though I’m not sure how to diagnose that.
The output of a call to phpinfo()
might shed more light on this. Edit a new article with that content and post its outcome:
<txp:php>
echo phpinfo();
</txp:php>
:
Offline
#5 2006-10-20 12:58:20
- blurb
- New Member
- Registered: 2006-03-02
- Posts: 8
Re: 4.0.4 Thumbnail creation broken
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Offline
#6 2006-10-20 12:59:23
- blurb
- New Member
- Registered: 2006-03-02
- Posts: 8
Re: 4.0.4 Thumbnail creation broken
What I don’t understand is how it worked in 4.0.3 but now doesn’t in 4.0.4. That seems to be a fault of 4.0.4.
Offline
#7 2006-10-21 01:26:39
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 4.0.4 Thumbnail creation broken
Textpattern only hides those elements if the function imagecreatefromjpeg is not available. That’s exactly the same thing 4.0.3 did, nothing about that changed. We should be using a different function to check, but, that doesn’t explain why it’s not showing up for you. Unless there is something wrong with the GD install on your server.
Question: could you put the following in a page (it can be a page you only create for this purpose), and tell us what output you get?
<txp:php>echo function_exists('imagecreatefromjpeg');</txp:php>
Offline
#8 2006-10-21 04:44:30
- blurb
- New Member
- Registered: 2006-03-02
- Posts: 8
Re: 4.0.4 Thumbnail creation broken
Running that code within TXP (created a page for it inside the admin) returns:
1
Same thing happens when I run it from a PHP doc with that command as PHP.
It just returns a 1.
I think that is a good sign, right??
Offline
#9 2006-10-21 07:54:33
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 4.0.4 Thumbnail creation broken
Yes, that’s a good sign. It means the ui should be showing, as far as what your server supports.
I suspect you’ve got a plugin interfering. Do you have any enabled? and if so, which ones?
Last edited by Mary (2006-10-21 07:55:03)
Offline
#10 2006-10-21 13:59:49
- blurb
- New Member
- Registered: 2006-03-02
- Posts: 8
Re: 4.0.4 Thumbnail creation broken
As I mentioned earlier in the thread, I have one enable, zem_article_image which worked in 4.0.3 and appears to work in 4.0.4. I disabled it and the thumbnail controls are still missing.
Offline
#11 2006-10-21 14:02:16
- blurb
- New Member
- Registered: 2006-03-02
- Posts: 8
Re: 4.0.4 Thumbnail creation broken
Looks like it is a browser issue. It works fine in Safari, but not the Deer Park G4 optimized Firefox build. Weird.
I can’t believe I didn’t try a different browser. Thanks for your time and help.
EDIT: The remember thumbnail settings feature is very handy, but it looks like the thumbnail image hangs on in the cache. So if you make one size and then take that same thumbnail and resize it, you can’t see your changes in the admin interface until you do a shift-refresh on your browser.
Last edited by blurb (2006-10-21 14:21:36)
Offline
Re: 4.0.4 Thumbnail creation broken
but it looks like the thumbnail image hangs on in the cache. So if you make one size and then take that same thumbnail and resize it, you can’t see your changes in the admin interface until you do a shift-refresh on your browser.
That’s a browser issue. The browser is caching the image and not requesting the image again. And since images are currently served directly by the webserver without going through PHP (or Textpattern), Textpattern cannot influence the HTTP-headers of the image. We might change this in the future. This affects both, btw, thumbnail and image.
Looks like it is a browser issue. It works fine in Safari, but not the Deer Park G4 optimized Firefox build. Weird.
That is highly unlikely. Can you please carefully double check, that both browsers point to exactly the same url, that there are no DNS and no caching issues involved?
Offline