Apply a image filter just for some images

Image scaler add-on.

Apply a image filter just for some images

Postby import » Sun Jan 27, 2008 8:58 pm

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

Postby import » Sun Jan 27, 2008 8:59 pm

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

Postby import » Sun Jan 27, 2008 8:59 pm

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

Postby import » Sun Jan 27, 2008 9:00 pm

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

Postby import » Sun Jan 27, 2008 9:00 pm

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

Postby import » Sun Jan 27, 2008 9:00 pm

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

Postby import » Sun Jan 27, 2008 9:01 pm

ok, I understand.
Thank you
import
 
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm


Return to JImageFilter



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.