Hi,
The normal way to do this is to add the parameters as snippets when
uploading the image.

Nadmin does it this way. Take a look at the different parameters
allready defined there and you might have what you need already.

If not, I would use the php functions to check H & W and then create the
parameters for the functions so that the next time the image is served
you do not have to.

Something like:

if (!$img->size_X && !$y = $img->size_Y ) $size = get_image_size();




Tarjei

pp wrote:
> 
> > > I use php images functions to have one attachment image per article
> > > and plenty of thumbnials with many sizes.
> > > I wonder how to get W and H of images using midgard functions?
> > > I need realy very fast way cause I open image on
> > > another subpage with <IMG src=..>, so I do not want to open image twice.
> > >
> 
> I wonder if I may use snippets for that instaed of pages.
> Manipulating with output buffering should be very usefull
> here, but on the second hand I know that 'ob'  functions
> slow down php, and I am not sure if it make sense.
> Anyone has some experience with that?
> 
> Piotras
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to