Allow more rectangular thumbnails without going so far as to allow banners (which are probably ads).

This commit is contained in:
Brent Simmons committed 2026-11-01 21:34:53 -08:00
1 parent 2915cb44e7
commit 2fd7f1b3cb
1 file changed
+1 -1
@@ -17,7 +17,7 @@ import Foundation
public enum SignificantImageFilter {
public static let minimumDimension = 64
public static let maximumAspectRatio = 4.0
public static let maximumAspectRatio = 6.0
/// `htmlClass` is an `<img>` tag’s `class` attribute. `enclosingLinkURLString` is the `href` of the `<a>` it’s inside.
public static func isSignificant(urlString: String, width: Int?, height: Int?, htmlClass: String? = nil, enclosingLinkURLString: String? = nil) -> Bool {