Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-12-12 11:24:19

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

thanks for the info gocom! unfortunately i’m still unable to move the contents of image.php straight into the plugin code and have it work. i can’t seem to call the function via the url (something like siteurl.com/?image=whatever etc) nor can i get it to use the attributes straight from the lam_article_image (or lam_image) tag $atts rather than using gps/$_REQUEST arrays via the url. bah! i’ll have to stick with the way it is for now until i learn/understand more.

Last edited by iblastoff (2007-12-12 11:42:03)

Offline

#14 2007-12-12 13:17:22

helsinkifrostbites
Member
From: Ystad, Sweden
Registered: 2007-11-16
Posts: 47
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

This looks like just the kind of thing I need! However, it’s not working for me. I checked with my hosting, and they say GD 2 is installed, but all I get is an empty page.

This works, and I see the full-size image:
http://www.culinaria.se/images/image.php?image=24.jpg

but this gives nothing:
http://www.culinaria.se/images/image.php?image=24.jpg&width=490

Any idea what might be causing this?

Offline

#15 2007-12-12 14:48:43

helsinkifrostbites
Member
From: Ystad, Sweden
Registered: 2007-11-16
Posts: 47
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

Ok now I’m really confused. The plugin seems to be working for some images, but not all.

Maybe there’s something about the image itself that stops it from being resized – a limit to how big the original can be maybe? Of course my authors are uploading photos the way they come out of the camera, so they can be quite huge.

Weirdness…

Offline

#16 2007-12-12 15:25:30

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: lam_dynamic_image (on-the-fly article image resizing and display)

helsinkifrostbites

but this gives nothing:

When you say ‘nothing’ do you mean your expected image is missing — or the whole page is totally blank?


Steve

Offline

#17 2007-12-12 15:59:39

helsinkifrostbites
Member
From: Ystad, Sweden
Registered: 2007-11-16
Posts: 47
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

Shows up as a broken image on the page. red x.

The url I posted is a direct link to the image.php, so that shows a blank page.

Offline

#18 2007-12-12 16:19:40

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: lam_dynamic_image (on-the-fly article image resizing and display)

Harri

over in this thread you said…

Now I’m trying to use your lam_dynamic_image instead, but that’s not working either, I get internal server error…

Please could you post your textpattern diagnostics (go to the admin > diagnostics tab to see them) for the site that’s giving that error.

Thank you.


Steve

Offline

#19 2007-12-12 16:54:10

helsinkifrostbites
Member
From: Ystad, Sweden
Registered: 2007-11-16
Posts: 47
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

Ok, here we go:

Textpattern version: 4.0.5 (r2466)
Last Update: 2007-12-02 11:23:50/2007-12-02 11:19:14
Document root: /customers/culinaria.se/culinaria.se/httpd.www
$path_to_site: /customers/culinaria.se/culinaria.se/httpd.www
Textpattern path: /customers/culinaria.se/culinaria.se/httpd.www/textpattern
Permanent link mode: messy
Temporary directory path: /customers/culinaria.se/culinaria.se/httpd.www/textpattern/tmp
Site URL: www.culinaria.se
PHP version: 5.2.5
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2007-12-12 17:52:31
MySQL: 5.0.32-Debian_7etch3-log
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.18-5-vserver-amd64
Active plugins: chh_if_data-0.10, etz_striptags-0.2, rss_author_info-0.2m, sab_substr-0.1, smd_lib-0.3, smd_random_banner-0.3a, zem_contact_lang-4.0.3.6m, zem_contact_reborn-4.0.3.20, rss_google_map-0.5, lam_dynamic_image-0.1

Pre-flight check:
————————————
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: disk_total_space, diskfreespace

Offline

#20 2007-12-12 17:12:45

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: lam_dynamic_image (on-the-fly article image resizing and display)

Harri

thank you for posting that. Further requests…

  1. at the time the site was giving the 500 Internal Server errors, was it setup as live, testing or debugging in the admin > preferences > basic tab?
  2. If it happened to be set to debugging, could you set it to testing and try again — please let me know if this cures your 500 internal server error problem .

Steve

Offline

#21 2007-12-12 17:42:47

helsinkifrostbites
Member
From: Ystad, Sweden
Registered: 2007-11-16
Posts: 47
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

No, it was set to testing all the time. There was no error message on the page, it only showed in my Activity window in Safari.
If I set to debugging, all hell breaks loose because of other plugins.

Offline

#22 2007-12-12 18:18:45

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

thats odd. i just tested it using that giant 24.jpg on my test server using 490 as width and it worked fine. my first guess would be a memory issue since resizing images via php takes a bit of horsepower (especially when you reach larger images). i’ll try to see what happens on my other hosts i can toy around with.

Last edited by iblastoff (2007-12-12 18:55:46)

Offline

#23 2007-12-12 18:35:51

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

just tried another test http://iblastoffmedia.com/articles/test-resize-again

and it worked fine. with same attributes using that 24.jpg and width of 490. hmm this doesn’t help you or me. i’ll keep digging.

Last edited by iblastoff (2007-12-12 18:52:24)

Offline

#24 2007-12-12 18:55:12

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_dynamic_image (on-the-fly article image resizing and display)

well i finally got it to not work and thats when i reset the memory_limit in php.ini to 8M (i typically use 32M as i remember some other php apps required higher than 8). if you have such control over your host try changing your memory_limit and see if that makes a difference. to see what you currently have alloted just use a simple phpinfo check to see what memory_limit is currently set to. not sure if this is the issue applicable to you but might as well start crossing things off the list.

i’ll see if i can add some sort of memory check in the plugin.

Last edited by iblastoff (2007-12-12 18:59:04)

Offline

Board footer

Powered by FluxBB