Anti-scraping: 3x3 grids, decoy pools, robot check
Every pyramid level is cut into at least min_grid x min_grid tiles. Each photo's tile pool mixes real tiles with hard-linked decoys from other photos; the grid-to-pool map, byte sizes, seed and scramble seed are sealed per build and unlocked by a press-and-hold check backed by a static proof of work. Cell scrambling is on by default, and robots.txt disallows tiles and pool files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
aaf7cafdf9
commit
f5152fb709
30 files changed
+2136
-203
No files matched your search
@@ -21,16 +21,18 @@ import (
|
||||
"github.com/luciochen233/luphoto/internal/fsutil"
|
||||
)
|
||||
|
||||
const processorVersion = "luphoto-pyramid-1"
|
||||
const processorVersion = "luphoto-pyramid-2"
|
||||
|
||||
type Level struct {
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Cols int `json:"cols"`
|
||||
Rows int `json:"rows"`
|
||||
Quality int `json:"quality"`
|
||||
Tiles []string `json:"tiles"`
|
||||
Bytes []int64 `json:"bytes"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
TileSize int `json:"tile_size"`
|
||||
Overlap int `json:"overlap,omitempty"`
|
||||
Cols int `json:"cols"`
|
||||
Rows int `json:"rows"`
|
||||
Quality int `json:"quality"`
|
||||
Tiles []string `json:"tiles"`
|
||||
Bytes []int64 `json:"bytes"`
|
||||
}
|
||||
|
||||
type Pyramid struct {
|
||||
@@ -124,6 +126,7 @@ func New(ctx context.Context, cfg *config.Config) (*Processor, error) {
|
||||
"format=" + format,
|
||||
fmt.Sprintf("q=%d,%d,%d", img.Quality.Top, img.Quality.Mid, img.Quality.Low),
|
||||
"min_levels=" + strconv.Itoa(img.MinLevels),
|
||||
"min_grid=" + strconv.Itoa(img.MinGrid),
|
||||
"seed=" + strconv.Itoa(img.SeedPx),
|
||||
"names=" + img.TileNames,
|
||||
"scramble=" + strconv.FormatBool(img.ScrambleCells),
|
||||
|
||||
Reference in new issue
Block a user