Page 1 of 1

Apply a image filter just for some images

Posted: Sun Jan 27, 2008 8:58 pm
by import
Is it possible to scale just the images which are higher than the
maxwidth and maxheight and not all the images ?

Re: Apply a image filter just for some images

Posted: Sun Jan 27, 2008 8:59 pm
by import
Yes, that's the way JImageFilter works. It checks:
maxwidth & maxheight
then:
landscape.maxwidth and landscape.maxheight
then:
portrait.maxwidth and portrait.maxheight

Depending on values above, it won't scale incoming images.

Re: Apply a image filter just for some images

Posted: Sun Jan 27, 2008 8:59 pm
by import
When I upload an image jpg which size is lower than the maxwidth
or maxheight. This images are saving again with the indication
"unregistred". And the quality of images is deteriorate for the
compression.

My scaling filter configuration is :
maxwidth=640
maxheight=480
quality=0.9
renamepolicy=rename
extensions=jpg,jpeg,jpe,bmp,tif,tiff,pnm,raw
forcergb=true
outformat=jpg

Re: Apply a image filter just for some images

Posted: Sun Jan 27, 2008 9:00 pm
by import
Ok, you want no modification at all. For instance, if you upload a GIF then it must stay in GIF format, correct ? Because the image filter convert all in output format (jpg here) and apply quality parameter, meta data (EXIF) cut or forward ...

Re: Apply a image filter just for some images

Posted: Sun Jan 27, 2008 9:00 pm
by import
yes, exactly ! and I understand but ... I would like this configuration
:

Tiff -> jpg
Raw-> jpg
Png -> png
Gif -> png
Jpeg -> jpg

and when I upload an image which size is lower than the maxwidth
and maxheight : no touch, just dropped !

It's possible with the version 2 ?

Re: Apply a image filter just for some images

Posted: Sun Jan 27, 2008 9:00 pm
by import
Mmmmhh, you're request is quite specific. We only planned one output format whatever the input. If you need this feature then you will need a custom development.

Re: Apply a image filter just for some images

Posted: Sun Jan 27, 2008 9:01 pm
by import
ok, I understand.
Thank you