Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2009-01-30 20:34:43

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

does this plugin work in conjunction with hak article image so that you can resize those mulitple article images on the fly?

Offline

#50 2009-01-30 22:12:30

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

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

I use it to output individual images and thumbnails, so yes, depending on how you set up your forms you can output multiple article images on the fly. It rocks and has totally changed the way I’m thinking about my page designs.

I’m not sure how it would work with hak article image but I think the important thing is to have the ability to output the article images raw url and that’s where the upm_image plugin comes in. I’m not sure if hak can do that. See if you can replace it with upm_image or work around it.


Art Rogue – Fine Art Photography

Offline

#51 2009-09-15 00:51:00

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

mlarino wrote:

Can this plugin resize images used insidethe articles without the end used having to write a different tag than <txp:image id=”#” /> ?

PHP doesn’t support function overwriting and thus no, you can’t directly make the txp:image to use the resizing lib.

But you can ofcourse:

  • Use the plugin provided tag.
  • Put the plugin image tags inside article forms.
  • Use upm_image etc. image plugins to populate the plugins’s tags.
  • Hack the TXP core (remove image() function, rename the plugin function to image() etc).
  • Use Apache (or whatever u are using) to fetch the resized image instead when the real image is requested via http.

Also remember:

  • On-pageload resizing is not preferred, especially when images are huge in pixels.

Offline

#52 2009-09-15 00:58:14

mlarino
Member
Registered: 2007-06-29
Posts: 367

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

Great Plugin! cant believe I just now found out about it…

Just one minor thing that would make it even more usefull!
I want to use this tag:
ex: <txp:lam_image width=“600” id=“1”/>
with your other plugin lam_image_uploader

modified this:
value=’<txp:image id=\”$img_result1\” />’ />
to
value=’<txp:lam_image width=“600” id=\”$img_result1\” />’ />

but creates an error.
any reason why this happens?
Any solution?

Found a solution:
instead of using (") I used the asci code & # 3 4 ;
now this:
value=’<txp:lam_image width=(the asci code)600(the asci code) id=\”$img_result1\” />
outputs this in lam_image uploader:
<txp:lam_image width=“600” id=“1”/>

Last edited by mlarino (2009-09-15 01:00:31)

Offline

#53 2009-11-06 11:47:10

kus
Member
From: madiun, Indonesia
Registered: 2007-03-15
Posts: 64
Website

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

Hi

Yesterday i moving my file hosting to new server, and this great plugin is stopped working.

And I get this error in my images folder error log :

[17-Jun-2009 04:36:14] PHP Warning: Division by zero in /home/username/public_html/images/image.php on line 51

High Diagnostic info :

Textpattern version: 4.2.0 (r3275)
Last Update: 2009-11-05 12:11:51/2009-08-28 19:31:19
Document root: /home/username/public_html
$path_to_site: /home/username/public_html
Textpattern path: /home/username/public_html/textpattern
Permanent link mode: section_title
Temporary directory path: /home/username/public_html/textpattern/tmp
Site URL: pralangga.org
PHP version: 5.2.8
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server TZ: Asia/Jakarta
Server Local Time: 2009-11-06 18:44:08
DST enabled?: 0
auto_dst: 0
Time Zone: Asia/Jakarta (25200)
MySQL: 5.0.81-community-log
Locale: en_US.UTF-8
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_bwlimited/1.4
PHP Server API: cgi
RFC 2616 headers: 0
Server OS: Linux 2.6.18-164.el5
Active plugins: rss_author_email-0.2.1, rss_author_info-0.2m, rss_auto_excerpt-0.5, chh_article_custom-1.15, glx_if-0.7, zem_contact_lang-4.0.3.03, zem_contact_reborn-4.0.3.17, rsx_page_number, rsx_last_page_num, rsx_page_number_nav, rsx_pag-3.0.1m, glx_gravatar-2007.1, tru_podcast-1.1, kml_flashembed-1.3.1, jnm_audio-0.3, recent_comments-0.2hackedm, etz_striptags-0.2, ajw_if_comment_owner-0.3.1, ajw_comment_num-0.2, asy_wondertag-0.5, Postmaster_library-0.1, lam_addthis-0.3b, lam_dynamic_image-0.1m, htn_feedstats-0.2, htn_antispam-0.2, smd_gallery-0.46, smd_if-0.75, SimplePie Plugin-1.2.2, jmd_author-0.1, ob1_pagination-2.5, asv_recent_comments-1.8, zem_nth-0.1, aam_typogrify-0.1, rss_admin_show_adv_opts-0.3, rss_admin_db_manager-4.3m, rss_unlimited_categories-0.7.4, ign_password_protect-0.4.2d, Postmaster-0.3, lam_image_uploader-0.6c, lam_browse_by-0.1, pvc_users_info-1.0, hcg_templates-0.3, wet_plugout-0.2, rah_textile_bar-0.3.2, wet_parachute-0.6, ajw_admin_workflow-0.3.1m, jmd_form_toggle-0.1, smd_bio-0.3
theme_name: remora 4.2.0

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
21 Tables: txp_discuss_defensio is latin1, txp_pvc_users_info is latin1, txp_ratings is latin1, txp_tame_enduser_docs is latin1

10 Custom Fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: zip/1.8.11, xmlwriter/0.1, libxml, xmlrpc/0.51, dom/20031129, xmlreader/0.1, xml, tokenizer/0.1, session, pcre, SimpleXML/0.1, SPL/0.2, sockets, SQLite/2.0-dev, standard/5.2.8, Reflection/0.1, posix, pgsql, mysqli/0.1, mysql/1.0, mime_magic/0.1, mhash, mcrypt, mbstring, json/1.2.1, imap, iconv, hash/1.0, gettext, gd, ftp, filter/0.11.0, exif/1.4 $Id: exif.c,v 1.173.2.5.2.26 2008/08/03 12:11:13 jani Exp $, date/5.2.8, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, cgi, eAccelerator/0.9.5.3, suhosin/0.9.27, SourceGuardian/7.0.2, ionCube Loader, Zend Optimizer

pretext_data: array ( ‘id’ => ‘’, ‘s’ => ‘’, ‘c’ => ‘’, ‘q’ => ‘’, ‘pg’ => ‘’, ‘p’ => ‘’, ‘month’ => ‘’, ‘author’ => ‘’, ‘request_uri’ => ‘/306ab4e7bfcbfe99459be946f9c55790/?txpcleantest=1’, ‘qs’ => ‘txpcleantest=1’, ‘subpath’ => ‘\\/’, ‘req’ => ‘/306ab4e7bfcbfe99459be946f9c55790/?txpcleantest=1’,
)

/home/username/public_html/index.php: r3189 (8becf5ea8d9ced7d05b2433dfbabf868)
/home/username/public_html/css.php: r3189 (7a0cc56c9dc585e56aab80bc0fb22c53)
/home/username/public_html/textpattern/css.php: r3189 (459137eeb00bb07136001528ce724192)
/home/username/public_html/textpattern/include/txp_admin.php: r3203 (26c4f327450f66618fe82b06fb8b9e70)
/home/username/public_html/textpattern/include/txp_article.php: r3246 (9211f37e8ba873c78b0c46186896d6b2)
/home/username/public_html/textpattern/include/txp_auth.php: r3250 (6be154f05fca4e83c4a4947c8635afd7)
/home/username/public_html/textpattern/include/txp_category.php: r3203 (2350c33b6acc663b56ba982bc479c920)
/home/username/public_html/textpattern/include/txp_css.php: r3118 (bfd945a0b268c60f7b71b6535c06154e)
/home/username/public_html/textpattern/include/txp_diag.php: r3267 (c03f4b7e28c2f8e5050924b6caf2f61f)
/home/username/public_html/textpattern/include/txp_discuss.php: r3185 (9b08de9e4f2df7160105ff218134ec67)
/home/username/public_html/textpattern/include/txp_file.php: r3200 (dc26e8f4cbb1821c466c14926c8a10ca)
/home/username/public_html/textpattern/include/txp_form.php: r3260 (6ad789075a6a1811d027f5e4043b845d)
/home/username/public_html/textpattern/include/txp_image.php: r3267 (814b6421cb2e2df073d0d6bf05c252bf)
/home/username/public_html/textpattern/include/txp_import.php: r3203 (fb18d629321a93472674dbd4abbfc63c)
/home/username/public_html/textpattern/include/txp_link.php: r3203 (7dee2f899aa22712e4f5f1005c6853b0)
/home/username/public_html/textpattern/include/txp_list.php: r3203 (2dd80b98cb76b0532133f6d7c2bcccb9)
/home/username/public_html/textpattern/include/txp_log.php: r3203 (a97af8e5ed62605ab0111e45266300cb)
/home/username/public_html/textpattern/include/txp_page.php: r3260 (ef00267f34445a33ce0f2e453c3a20db)
/home/username/public_html/textpattern/include/txp_plugin.php: r3203 (8c1691e89ccfc8a8f9160e66efce2b09)
/home/username/public_html/textpattern/include/txp_prefs.php: r3235 (9833b1a7cbd01def4ceb40f8cdf01a3b)
/home/username/public_html/textpattern/include/txp_preview.php: r1238 (cc7d08574508c8ec1e4c5281d534d6e3)
/home/username/public_html/textpattern/include/txp_section.php: r3203 (1c7eec911a015b72e42d5cea903be426)
/home/username/public_html/textpattern/include/txp_tag.php: r3195 (280f0fd2e6f50e6a0f13490ea5dfc1f4)
/home/username/public_html/textpattern/index.php: r3275 (6e259f5394d65617809d25e4823de174)
/home/username/public_html/textpattern/jquery.js: unknown (bb381e2d19d8eace86b34d20759491a5)
/home/username/public_html/textpattern/lib/IXRClass.php: r2932 (6c533bb271087338aa19ca0b78b1810f)
/home/username/public_html/textpattern/lib/admin_config.php: r3202 (524b829d7c73e5db26415633e799e350)
/home/username/public_html/textpattern/lib/class.thumb.php: r3107 (0e3f7b9da4b0c77f9b75263142598902)
/home/username/public_html/textpattern/lib/classTextile.php: r2812 (b3e4cd9bd5fb469fabdebb2c0376f7e7)
/home/username/public_html/textpattern/lib/constants.php: r3133 (b296756aedaf98b6f9420359dd07abdb)
/home/username/public_html/textpattern/lib/taglib.php: r2868 (a0662fa399fb16e837e8852f044dade9)
/home/username/public_html/textpattern/lib/txplib_admin.php: r3047 (54de3f807984122ebe9b8b955e5189f4)
/home/username/public_html/textpattern/lib/txplib_db.php: r3250 (c29e316100ae6ed42d6ec51506388b5f)
/home/username/public_html/textpattern/lib/txplib_forms.php: r3256 (2623d94099735edc0e7a51309c26665d)
/home/username/public_html/textpattern/lib/txplib_head.php: r3265 (4492de4935f8352357f0809d9d89516f)
/home/username/public_html/textpattern/lib/txplib_html.php: r3255 (adb712630ad3bbe59c5f716befa33f0a)
/home/username/public_html/textpattern/lib/txplib_misc.php: r3271 (68d443f0f20acec5e86857a823c2b4e2)
/home/username/public_html/textpattern/lib/txplib_theme.php: r3269 (83bcbeffa883bed5f0af951dda7be2fb)
/home/username/public_html/textpattern/lib/txplib_update.php: r2812 (5e6821f06aeafe50b54e5a273423384f)
/home/username/public_html/textpattern/lib/txplib_wrapper.php: r2931 (1c1b260a13c67657f1678d72559583bc)
/home/username/public_html/textpattern/publish.php: r3258 (bc931a3406370c1ea4139ef957e95e38)
/home/username/public_html/textpattern/publish/atom.php: r3029 (f8cc6dbfb5a5f2b39ec480589b2d59c3)
/home/username/public_html/textpattern/publish/comment.php: r3266 (815df18aa4d451246ee70dd0502a8484)
/home/username/public_html/textpattern/publish/log.php: r3247 (1c047309f6f13883b29a943d1cddec3a)
/home/username/public_html/textpattern/publish/rss.php: r3029 (c39570953c1bd8347e456d750317b815)
/home/username/public_html/textpattern/publish/search.php: r2812 (29a315e2435b73fe3d3a4d83fe84ba19)
/home/username/public_html/textpattern/publish/taghandlers.php: r3256 (a40dce2989737477b1147d2104bba326)
/home/username/public_html/rpc/index.php: r2998 (682e18cb9bdd6e9442a9ac23db1a591f)
/home/username/public_html/rpc/TXP_RPCServer.php: r3250 (84ff888bf577670c897fdc27ad580c0f)
/home/username/public_html/textpattern/theme/classic/classic.php: r3191 (722c6c7f2c8dbfee5c6cede0af2cd689)
/home/username/public_html/textpattern/update/_to_1.0.0.php: r3047 (cbd20d275bf74184b1112569c2e77f76)
/home/username/public_html/textpattern/update/_to_4.0.2.php: r3047 (4c9f8cd5c16bf19ff191ab35f0354e0f)
/home/username/public_html/textpattern/update/_to_4.0.3.php: r3047 (6a4af33a23caf950c05faca0e8b4c93b)
/home/username/public_html/textpattern/update/_to_4.0.4.php: r3047 (b235e2a27a6e79652ef078f62f73eb21)
/home/username/public_html/textpattern/update/_to_4.0.5.php: r2894 (d17a02f48b79dbe6b3b0cf6eb779aadb)
/home/username/public_html/textpattern/update/_to_4.0.6.php: r3047 (4d7b21635fbf46058cc539a0eec00561)
/home/username/public_html/textpattern/update/_to_4.0.7.php: r3014 (e8ba7dc2892b81ce89b62775e2f5ea17)
/home/username/public_html/textpattern/update/_to_4.0.8.php: r3057 (d699021db8e7c9f7d32f3ad3631caebc)
/home/username/public_html/textpattern/update/_to_4.2.0.php: r3233 (aec6e4aafa98dbafe75506efd7f85816)
/home/username/public_html/textpattern/update/_update.php: r3275 (e9085d568d49ff7910ffd4eb49bbe293)

————————————

Thanks for advice & help.

UPD : Fixed now , I need to replace image.php from lam_image plugin with image.php file from Joe Lencioni smart image resizer.

Last edited by kus (2009-11-07 11:36:14)

Offline

#54 2010-03-10 10:24:06

Qwest
Member
From: London, UK
Registered: 2007-01-24
Posts: 112

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

My host recently updated their server to php 5.3 and this in turn broke the lam_dynamic_image plugin. All my images would display the following error message.

GD 2.0.34 No JPG support

This has been the case for about a month.

It turns out, that in the update to PHP 5.3, JPG has been changed to JPEG. In order to fix this, open image.php and around lines 88 & 223, change JPG to JPEG. Save & reupload will fix your issues.

BIG thanks to Cole007 for the help & guidance with this issue!

Offline

#55 2010-03-25 17:48:03

mlarino
Member
Registered: 2007-06-29
Posts: 367

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

Hi!
I wanted to use this plugin for article images, but it doesnt support multiple article images, or a way to limit it to the first article image.
I tryed something like this with upm_img:

<txp:lam_article_image id="<txp:upm_article_image limit='1'><txp:upm_img_id /></txp:upm_article_image>" width="520" />

but ofcourse it breaks the plugin, and doesnt work…

anyone has an idea how to do it some other way?
maybe using upm_img form or wrapform?

thanks!

Last edited by mlarino (2010-03-25 18:17:47)

Offline

#56 2011-09-12 16:19:33

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

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

Ey, there’s no way to download de plugin! is it orphaned? any way to download it?

Thanks

Last edited by milosevic (2011-09-12 16:20:19)


<txp:rocks/>

Offline

#57 2011-09-12 20:46:04

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

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

Uploaded my copy to TXP resources. Can’t tell whether this is the most current version nor whether it is still working.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#58 2011-09-12 23:54:52

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

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

Jorge, this plugin is based on a PHP script that was last updated in 2008. That may be OK, maybe not. You might want to take a look at something like TimThumb. I use it with Textpattern sites all the time, and it is about as easy to use as a Textpattern tag. :-)

Offline

#59 2011-09-13 03:43:29

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

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

Although uli has already solved the problem:

All no longer updated lam_plug_ins can be downloaded here: http://iblastoff.ca/extras

Offline

#60 2011-09-13 11:12:21

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

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

Thank you, guys.

I will try TimThumb, looks nice, since then, I will go on using lam_dynamic_image (if it works, don’t touch anythink!)


<txp:rocks/>

Offline

Board footer

Powered by FluxBB