Apply a image filter just for some images

Image scaler add-on.
Post Reply
import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

Apply a image filter just for some images

Post by import »

Is it possible to scale just the images which are higher than the
maxwidth and maxheight and not all the images ?

import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

Re: Apply a image filter just for some images

Post 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.

import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

Re: Apply a image filter just for some images

Post 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

import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

Re: Apply a image filter just for some images

Post 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 ...

import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

Re: Apply a image filter just for some images

Post 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 ?

import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

Re: Apply a image filter just for some images

Post 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.

import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

Re: Apply a image filter just for some images

Post by import »

ok, I understand.
Thank you

Post Reply