[Imc-andorra] [st3@riseup.net: [ahimsa-tech] sf-active image class]
Pseudo Punk
bart en indymedia.org
Mie Jun 9 01:17:41 PDT 2004
Hey,
We're gonna start with making thumbnails & resizing to big pictures.
we though the following values make sense:
thumbnails: width: max 120 / heigth: max 100
images for articles: max 600 (h & w)
can someone confirm if this is ok to you or propose other values asap ?
Bart
----- Forwarded message from st3 en riseup.net -----
Date: Tue, 8 Jun 2004 21:24:05 +0200
From: st3 en riseup.net
To: ahimsa-tech en lists.indymedia.org
Subject: [ahimsa-tech] sf-active image class
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
i and PseudoPunk are going to put on the new code for sf-active uploaded
images thumbnailing, resizing and dividing
it will work just for sf-active sites
the new system works this way:
1) thumbnails are made for searching purposes: they are displayed in the
search results page
2) midsize pics are made to be displayed within the article body: if the
size of an image exceeds some limits (width, height and bytes) it will be
resized or compressed according to those limits: original images will be
linked to midsize ones, so that when ppl click on a resized image, a popup
with the original pic is shown
3) the uploads will be divided in different directories for date, i.e.
/uploads/yyyy/MM/
- ---
how to get this working
part a - configuration
basically, you need some variables to be added in sf-active.cfg, in your
local config path (i.e. /imc/sf-active-new/yourimc/local/config/)
we are already adding them, but commented out, so you just need to uncomment
them out (and, however, they are quite self-explanatory =)
while they are commented out, no thumbnailing _and/or_ resizing will take
effect (you can set just some of them, for example setting only
'max_image_size' will just make image compression)
all variables are in pixel, unless otherwise noted
1)
$GLOBALS['image_thumbnail_x'] = z // sets the thumbnail width
$GLOBALS['image_thumbnail_y'] = z // sets the thumbnail height
2)
$GLOBALS['max_image_x'] = z // sets midsize limit width
$GLOBALS['max_image_y'] = z // sets midsize limit height
$GLOBALS['max_image_size'] = z // sets midsize limit weight, in bytes
part b - old pics resize
you need to make the thumbnails and midsize for old images too (only kenya
imc don't actually need it to do it =)
i coded a function in image_class.inc to do this, but it's _really_ better
that you ask me or PseudoPunk to get this done, because it's not as easy as
an 1-2-3
PseudoPunk will do for imc wvl and for zmagbr now, and asking for liege
- ---
so, what should you do:
1) if you want this feature to be enabled for your imc, ask me or PseudoPunk
(on this list or on #ahimsa, irc.indymedia.org) to have your old images
converted and your articles regenerated according to new filenames
2) configure as in part a all the times you want (we are probably gonna make
a pics regeneration process directly accessible from admin interface asap)
3) enjoy =)
we're gonna do as well some compression controls that can be set up in the
publish form by users
- --
ciao
st3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAxhJVy73K8JGqb0QRAvk4AJ4vL7CoCwR5tnlPy536pbaWztfmVgCeKeCg
WRya+k7h1tDlMkZ7qp2nEkI=
=FzFI
-----END PGP SIGNATURE-----
_______________________________________________
ahimsa-tech mailing list
ahimsa-tech en lists.indymedia.org
http://lists.indymedia.org/cgi-bin/mailman/listinfo/ahimsa-tech
--
mtop looks like the revolution!
http://wvl.indymedia.org | bart at indymedia.org
http://thepits.be | bart at thepits.be
http://pseudopunk.be
gebruik vrije software -- Debian GNU/Linux -- http://debian.org
gpg --keyserver keys.indymedia.org --recv-keys be196251
Más información sobre la lista de distribución Imc-andorra