|
Replies:
8
-
Pages:
1
-
Last Post:
7 Dec 21, 16:44
Last Post By: ctwist
|
|
|
Posts:
474
Registered:
27-Sep-2003
|
|
|
FixedShapeFilter for an individual image
Posted:
5 Dec 21, 04:45
|
|
|
I want to apply FixedShapeFilter to an individual thumbnail. The album just contains one oblong image.
Testing in Minimal:
1)
I de-selected "Fixed-shape thumbnails" in the Minimal settings (so that Minimal does not apply FixedShapeFilter).
2)
I added this to the image's variables:
filter1 : class=FixedShapeFilter prescale thumbnails
The filter was not applied; an oblong thumbnail was generated.
3)
I removed the filter from the image and added it to the album's user variables.
The filter was applied; a square thumbnail was generated.
Shouldn't it be possible to apply FixedShapeFilter to an individual image?
BTW I am actually attempting to apply FixedShapeFilter programmatically. Unsurprisingly this does not work either.
|
|
|
Posts:
3,442
Registered:
18-Oct-2002
|
|
|
Re: FixedShapeFilter for an individual image
Posted:
5 Dec 21, 22:15
in response to: ctwist
|
|
|
This is currently only possible if you wrap the FixedShapeFilter in some kind of conditional filter that checks the file name for instance. Why not simply crop that single image manually using jAlbum's edit section?
|
|
|
Posts:
474
Registered:
27-Sep-2003
|
|
|
Re: FixedShapeFilter for an individual image
Posted:
5 Dec 21, 23:26
in response to: davidekholm
|
|
|
For most images, I want to retain the original shape when creating the thumbnail. However, for a panorama, this produces a thumbnail that is only a few pixels tall, and this doesn't look good.
So, for a panorama, I want to automatically create a cropped thumbnail (with the right and left sections removed) that conforms to the maximum thumbnail dimensions.
Is there an existing conditional filter that I could use as a template?
BTW I previously compared CropFilter to FixedShapeFilter, hoping to see a conditional selector, but I couldn't see anything.
|
|
|
Posts:
8,039
Registered:
31-Jan-2006
|
|
|
Re: FixedShapeFilter for an individual image
Posted:
6 Dec 21, 18:44
in response to: davidekholm
|
|
|
Me and Laza believe we created "ConstrainRatioFilter" for the purpose you described. Check it out.
I use that filter by default in most of my skins, specifically to take care of the "godawful thumbnail for a pano" problem. I've settled on 0.5 and 2.5 as the vertical and horizontal limits - the default horizontal limit is 2.0.
Documentation on that filter seems to be missing, or at least my searching skills aren't working very well today.
https://jalbum.net/forum/thread.jspa?messageID=331717
|
|
|
Posts:
8,039
Registered:
31-Jan-2006
|
|
|
Re: FixedShapeFilter for an individual image
Posted:
6 Dec 21, 18:49
in response to: JeffTucker
|
|
|
BTW, David, in which version of jAlbum was the ConstrainRatioFilter class included in the standard plugins? I'm still providing it in my skins, but probably don't need to. The jAlbum release notes don't mention it anywhere.
ETA: Found it. It first appeared in the released jAlbum 19.3 version.
|
|
|
Posts:
3,442
Registered:
18-Oct-2002
|
|
|
Re: FixedShapeFilter for an individual image
Posted:
7 Dec 21, 12:50
in response to: JeffTucker
|
|
|
BTW, David, in which version of jAlbum was the ConstrainRatioFilter class included in the standard plugins? I'm still providing it in my skins, but probably don't need to. The jAlbum release notes don't mention it anywhere.
ETA: Found it. It first appeared in the released jAlbum 19.3 version.
You're the best when you answer your own questions Jeff
|
|
|
Posts:
8,039
Registered:
31-Jan-2006
|
|
|
Re: FixedShapeFilter for an individual image
Posted:
7 Dec 21, 14:19
in response to: davidekholm
|
|
|
|
|
Posts:
474
Registered:
27-Sep-2003
|
|
|
Re: FixedShapeFilter for an individual image
Posted:
7 Dec 21, 16:44
in response to: davidekholm
|
|
|
Yes, ConstrainRatioFilter works well. I noticed this in the forum a couple of years ago, but then I forgot about it.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|