Реграб с .webp

Post Reply
Semen_ssr
Posts: 867
Joined: Sun Apr 25, 2010 7:59 pm

Реграб с .webp

Post by Semen_ssr »

1. Создаю профиль с форматом .webp.
2. Выделяю > MassEdit Selected > Crop Profile : Webp + Status : To regrab
По логу
2021-07-14 14:50:03: processed_galleries = 1, memory = 5 Mb limit 1024M (0.00055503845214844, 0.00055789947509766)
2021-07-14 14:50:03: Processing https://www.example.com/galleries/bla-bla/ (45969) (0.0091650485992432, 0.0086088180541992)
2021-07-14 14:50:03: Regrabbing gallery (0.0092329978942871, 6.6995620727539E-5)
2021-07-14 14:50:03: Downloading img https://img.example.com/482796_04.jpg to ../tmp/45969/tmp//55165.jpg, ref https://www.example.com/galleries/bla-bla/ (0.040385007858276, 0.031152009963989)
2021-07-14 14:50:03: Downloaded 10% (0.32606101036072, 0.2856879234314)
2021-07-14 14:50:03: Downloaded 20% (0.32638311386108, 0.00030803680419922)
2021-07-14 14:50:03: Downloaded 30% (0.33100295066833, 0.004626989364624)
2021-07-14 14:50:03: Downloaded 40% (0.34713292121887, 0.016120910644531)
2021-07-14 14:50:03: Downloaded 50% (0.35105299949646, 0.0039129257202148)
2021-07-14 14:50:03: Downloaded 60% (0.35410499572754, 0.0030479431152344)
2021-07-14 14:50:03: Downloaded 70% (0.35697293281555, 0.0028741359710693)
2021-07-14 14:50:03: Downloaded 80% (0.3598690032959, 0.0028831958770752)
2021-07-14 14:50:03: Downloaded 90% (0.36158990859985, 0.0017180442810059)
2021-07-14 14:50:03: Downloaded 100% (0.36429405212402, 0.0026998519897461)
2021-07-14 14:50:03: Source Size: 51428 (0.36598992347717, 0.0016939640045166)
2021-07-14 14:50:03: Source Size 51428 (0.36613798141479, 0.00013589859008789)
2021-07-14 14:50:03: Identify /usr/local/bin//identify -verbose ../tmp/45969/tmp//55165.jpg (0.36634206771851, 0.00020289421081543)
2021-07-14 14:50:03: Make thumb ../tmp/45969/tmp//55165.jpg -> ../tmp/45969/tmp//14012.webp (0.5687780380249, 0.20243191719055)
2021-07-14 14:50:03: Creating thumb ../tmp/45969/tmp//14012.webp.tmp.webp -> ../tmp/45969/tmp//14012.webp (0.568932056427, 0.00014996528625488)
2021-07-14 14:50:03: Identify /usr/local/bin//identify -verbose ../tmp/45969/tmp//14012.webp.tmp.webp (0.5692241191864, 0.0002899169921875)
2021-07-14 14:50:03: Size: 460x603 (../tmp/45969/tmp//14012.webp.tmp.webp) thumb: 200x260
thumb_ratio: 0.76923076923077 img_ratio: 0.76285240464345 to ../tmp/45969/tmp//14012.webp (0.68516612052917, 0.11594414710999)
2021-07-14 14:50:03: Cut image (0.68529295921326, 0.0001220703125)
2021-07-14 14:50:03: IM Cmd custom : /usr/local/bin//convert -crop +0+2 +repage -crop -0-2 +repage -resize 200x260^ -gravity Center -crop 200x260+0+0 -filter Lanczos -modulate 95,102,100 -unsharp 0.4x0.3+0.2 -blur 0.1x0.1 -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB ../tmp/45969/tmp//14012.webp.tmp.webp ../tmp/45969/tmp//14012.webp (0.68535208702087, 5.793571472168E-5)
2021-07-14 14:50:04: Thumb created, file size 6534 (0.87241005897522, 0.18706202507019)
2021-07-14 14:50:04: Identify /usr/local/bin//identify -verbose ../tmp/45969/tmp//14012.webp (0.87254905700684, 0.00013279914855957)
2021-07-14 14:50:04: Saving thumb (377765): title:, desc:, function rotation_get_thumb_path (force name: 765_posing_naked_on.jpg) to folder 377/ filename 765_posing_naked_on.jpg (0.91807413101196, 0.045526027679443)
2021-07-14 14:50:04: Saving location: local to folder ../thumbs//377/ (0.91819095611572, 0.00011205673217773)
2021-07-14 14:50:04: save_name 765_posing_naked_on.jpg (0.91824293136597, 5.0067901611328E-5)
2021-07-14 14:50:04: Saving file ../tmp/45969/tmp//14012.webp (6534 bytes) to ../thumbs//377//765_posing_naked_on.jpg (0.91828298568726, 3.9100646972656E-5)
2021-07-14 14:50:04: ../thumbs//377//765_posing_naked_on.jpg saved (6534 bytes) (1.0242581367493, 0.10598087310791)
2021-07-14 14:50:04: Setting gallery status to active (1.0243649482727, 9.7036361694336E-5)
2021-07-14 14:50:04: Cleanup tmp folder ../tmp/45969 (1.0247859954834, 0.00042104721069336)
Тумбы так и сохранились в .jpg
Semen_ssr
Posts: 867
Joined: Sun Apr 25, 2010 7:59 pm

Re: Реграб с .webp

Post by Semen_ssr »

С изменением размера ситуация та же
1. Создаю профиль с размером 168x314 было 200x260
2. Выделяю > MassEdit Selected > Crop Profile : Webp/168x314 + Status : To regrab
По логу
2021-07-14 15:30:01: Processing https://www.example.com/galleries/bla-bla/ (45992) (0.010841131210327, 0.010177850723267)
2021-07-14 15:30:01: Regrabbing gallery (0.010898113250732, 5.5074691772461E-5)
2021-07-14 15:30:01: Downloading img https://img.example.com/460/2015-08-14/320135_08.jpg to ../tmp/45992/tmp//466920.jpg, ref https://www.example.com/galleries/bla-bla/ (0.012253999710083, 0.0013561248779297)
2021-07-14 15:30:02: Downloaded 10% (0.37201595306396, 0.35976409912109)
2021-07-14 15:30:02: Downloaded 20% (0.37222003936768, 0.0001981258392334)
2021-07-14 15:30:02: Downloaded 30% (0.37702608108521, 0.0048060417175293)
2021-07-14 15:30:02: Downloaded 40% (0.39279007911682, 0.015764951705933)
2021-07-14 15:30:02: Downloaded 50% (0.39704704284668, 0.0042519569396973)
2021-07-14 15:30:02: Downloaded 60% (0.40048503875732, 0.0034370422363281)
2021-07-14 15:30:02: Downloaded 70% (0.40396094322205, 0.0034749507904053)
2021-07-14 15:30:02: Downloaded 80% (0.40719699859619, 0.0032329559326172)
2021-07-14 15:30:02: Downloaded 90% (0.4104859828949, 0.0032889842987061)
2021-07-14 15:30:02: Downloaded 100% (0.41379594802856, 0.0033080577850342)
2021-07-14 15:30:02: Source Size: 55447 (0.41562509536743, 0.0018281936645508)
2021-07-14 15:30:02: Source Size 55447 (0.41567397117615, 4.6014785766602E-5)
2021-07-14 15:30:02: Identify /usr/local/bin//identify -verbose ../tmp/45992/tmp//466920.jpg (0.41575312614441, 7.8916549682617E-5)
2021-07-14 15:30:02: Make thumb ../tmp/45992/tmp//466920.jpg -> ../tmp/45992/tmp//52372.webp (0.60724806785583, 0.19150114059448)
2021-07-14 15:30:02: Creating thumb ../tmp/45992/tmp//52372.webp.tmp.webp -> ../tmp/45992/tmp//52372.webp (0.60744404792786, 0.00018811225891113)
2021-07-14 15:30:02: Identify /usr/local/bin//identify -verbose ../tmp/45992/tmp//52372.webp.tmp.webp (0.60780501365662, 0.00035905838012695)
2021-07-14 15:30:02: Size: 460x667 (../tmp/45992/tmp//52372.webp.tmp.webp) thumb: 168x314
thumb_ratio: 0.53503184713376 img_ratio: 0.68965517241379 to ../tmp/45992/tmp//52372.webp (0.78898811340332, 0.18118596076965)
2021-07-14 15:30:02: Cut image (0.7891161441803, 0.00012111663818359)
2021-07-14 15:30:02: IM Cmd custom : /usr/local/bin//convert -crop +51+0 +repage -crop -51-0 +repage -resize 168x314^ -gravity Center -crop 168x314+0+0 -filter Lanczos -modulate 95,102,100 -unsharp 0.4x0.3+0.2 -blur 0.1x0.1 -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB ../tmp/45992/tmp//52372.webp.tmp.webp ../tmp/45992/tmp//52372.webp (0.7891800403595, 6.1988830566406E-5)
2021-07-14 15:30:02: Thumb created, file size 9588 (0.94028806686401, 0.15111899375916)
2021-07-14 15:30:02: Identify /usr/local/bin//identify -verbose ../tmp/45992/tmp//52372.webp (0.94046711921692, 0.00016498565673828)
2021-07-14 15:30:02: Saving thumb (377788): title:, desc:, function rotation_get_thumb_path (force name: 788_Asian_teen_behind.jpg) to folder 377/ filename 788_Asian_teen_behind.jpg (0.98606610298157, 0.045600175857544)
2021-07-14 15:30:02: Saving location: local to folder ../thumbs//377/ (0.98618507385254, 0.00011301040649414)
2021-07-14 15:30:02: save_name 788_Asian_teen_behind.jpg (0.98623108863831, 4.3869018554688E-5)
2021-07-14 15:30:02: Saving file ../tmp/45992/tmp//52372.webp (9588 bytes) to ../thumbs//377//788_Asian_teen_behind.jpg (0.98626804351807, 3.6001205444336E-5)
2021-07-14 15:30:02: ../thumbs//377//788_Asian_teen_behind.jpg saved (9588 bytes) (0.99496507644653, 0.0087029933929443)
2021-07-14 15:30:02: Setting gallery status to active (0.99505209922791, 7.7962875366211E-5)
2021-07-14 15:30:02: Cleanup tmp folder ../tmp/45992 (0.99557995796204, 0.00052499771118164)
Размер тумб остался прежним 200x260, при этом в [ Edit Item ] присвоен Crop Profile с размером 168x314
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Реграб с .webp

Post by admin »

Так и должно быть
что б при реграбе имя файло оставалось как было что б на страницах не было пробелов

файлы по формату webp просто имя осталось старое с jpg
Don't forget to run script update
Semen_ssr
Posts: 867
Joined: Sun Apr 25, 2010 7:59 pm

Re: Реграб с .webp

Post by Semen_ssr »

Понятно ...
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Реграб с .webp

Post by admin »

ok
Don't forget to run script update
Post Reply