This question is answered.


Permlink Replies: 8 - Pages: 1 - Last Post: 7 Dec 21, 16:44 Last Post By: ctwist Threads: [ Previous | Next ]
ctwist

Posts: 474
Registered: 27-Sep-2003
FixedShapeFilter for an individual image
Posted: 5 Dec 21, 04:45
 
  Click to reply to this thread Reply
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.
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: FixedShapeFilter for an individual image
Posted: 5 Dec 21, 22:15   in response to: ctwist in response to: ctwist
 
  Click to reply to this thread Reply
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?
ctwist

Posts: 474
Registered: 27-Sep-2003
Re: FixedShapeFilter for an individual image
Posted: 5 Dec 21, 23:26   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
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.
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: FixedShapeFilter for an individual image
Posted: 6 Dec 21, 18:32   in response to: ctwist in response to: ctwist
Correct
  Click to reply to this thread Reply
Me and Laza believe we created "ConstrainRatioFilter" for the purpose you described. Check it out.
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: FixedShapeFilter for an individual image
Posted: 6 Dec 21, 18:44   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
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
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: FixedShapeFilter for an individual image
Posted: 6 Dec 21, 18:49   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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.
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: FixedShapeFilter for an individual image
Posted: 7 Dec 21, 12:50   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
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 :-)
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: FixedShapeFilter for an individual image
Posted: 7 Dec 21, 14:19   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
And I'm in the process of adding the missing documentation. :)

https://jalbum.net/help/en/More_about_image_filters#Constrain_ratio_filter
ctwist

Posts: 474
Registered: 27-Sep-2003
Re: FixedShapeFilter for an individual image
Posted: 7 Dec 21, 16:44   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
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

Point your RSS reader here for a feed of the latest messages in all forums