extra thumb зачем два раза качать

Post Reply
Nikso
Posts: 543
Joined: Tue Mar 05, 2013 3:59 am

extra thumb зачем два раза качать

Post by Nikso »

Выставил в импорте генерить дополнительно экстра тумбу к основной.
смотрю лог грабера вижу что скрипт скачивает одну и туже тумбу дважды.
1 раз для основной
2 раз для экстра тумбы

А зачем ее повторно качать, не проще сразу с первой все указанные размеры накропить

Code: Select all

2022-01-12 12:26:31: Creating thumb from https://img.site.com/sn0safuatkpjh1sfy87myauhqhleo0lj/512x384.jpg  (135x97) (Crop profile: 1)  (0.0086300373077393, 0.00066208839416504)
2022-01-12 12:26:31: Downloading img https://img.site.com/sn0safuatkpjh1sfy87myauhqhleo0lj/512x384.jpg to ../tmp/13079/tmp//140384.jpg, ref https://html5.site.com/sn0safuatkpjh1sfy87myauhqhleo0lj/  (0.0089139938354492, 0.00028395652770996)
2022-01-12 12:26:31: Downloaded 80% (0.36221694946289, 0.35330891609192)
2022-01-12 12:26:31: Downloaded 100% (0.37273788452148, 0.010516881942749)
2022-01-12 12:26:31: Source Size: 52620 (0.37314200401306, 0.00039792060852051)
2022-01-12 12:26:31: Source Size 52620 (0.37328791618347, 0.00013899803161621)
2022-01-12 12:26:31: Identify /usr/bin//identify -verbose ../tmp/13079/tmp//140384.jpg (0.37351107597351, 0.00022196769714355)
2022-01-12 12:26:31: Make thumb ../tmp/13079/tmp//140384.jpg -> ../tmp/13079/tmp//71070.webp (0.44053506851196, 0.067022800445557)
2022-01-12 12:26:31: Process custom image IM (/usr/bin/convert -bordercolor black -border 1x1 -fuzz 20% -trim ../tmp/13079/tmp//140384.jpg ../tmp/13079/tmp//140384.jpg ) (0.4407479763031, 0.00020503997802734)
2022-01-12 12:26:31: Creating thumb ../tmp/13079/tmp//71070.webp.tmp.webp -> ../tmp/13079/tmp//71070.webp  (0.46585988998413, 0.025115966796875)
2022-01-12 12:26:31: Identify /usr/bin//identify -verbose ../tmp/13079/tmp//71070.webp.tmp.webp (0.46668410301208, 0.00081396102905273)
2022-01-12 12:26:32: Size: 512x384 (../tmp/13079/tmp//71070.webp.tmp.webp) thumb: 135x97
			thumb_ratio: 1.3917525773196 img_ratio: 1.3333333333333 to ../tmp/13079/tmp//71070.webp (0.52970099449158, 0.063011884689331)
2022-01-12 12:26:32: Add cut params (0.52989101409912, 0.00018405914306641)
2022-01-12 12:26:32: IM Cmd custom : /usr/bin//convert  -crop +0+8 +repage  -crop -0-8 +repage   -resize 135x97^ -gravity Center -crop 135x97+0+0 -filter Blackman -modulate 105,102,100 -enhance -sharpen 1x1 -quality 85 -strip ../tmp/13079/tmp//71070.webp.tmp.webp ../tmp/13079/tmp//71070.webp  (0.53004598617554, 0.00015115737915039)
2022-01-12 12:26:32: Thumb created, file size 6702 (0.56526398658752, 0.035213947296143)
2022-01-12 12:26:32: Identify /usr/bin//identify -verbose ../tmp/13079/tmp//71070.webp (0.56550598144531, 0.0002439022064209)

2022-01-12 12:26:32: Making extra (0.58807706832886, 0.022569894790649)
2022-01-12 12:26:32: Downloading img https://img.site.com/sn0safuatkpjh1sfy87myauhqhleo0lj/512x384.jpg to ../tmp/13079/tmp//847718.jpg, ref https://html5.site.com/sn0safuatkpjh1sfy87myauhqhleo0lj/  (0.58863186836243, 0.00054502487182617)
2022-01-12 12:26:32: Downloaded 80% (0.97449398040771, 0.38586401939392)
2022-01-12 12:26:32: Downloaded 90% (0.98487591743469, 0.010371923446655)
2022-01-12 12:26:32: Downloaded 100% (0.98517394065857, 0.00029301643371582)
2022-01-12 12:26:32: Source Size: 52620 (0.98541498184204, 0.0002448558807373)
2022-01-12 12:26:32: Source Size 52620 (0.9855489730835, 0.00012803077697754)
2022-01-12 12:26:32: Identify /usr/bin//identify -verbose ../tmp/13079/tmp//847718.jpg (0.98566007614136, 0.00010800361633301)
2022-01-12 12:26:32: Make thumb ../tmp/13079/tmp//847718.jpg -> ../tmp/13079/tmp//24402.webp (1.0522608757019, 0.066602945327759)
2022-01-12 12:26:32: Process custom image IM (/usr/bin/convert -bordercolor black -border 1x1 -fuzz 20% -trim ../tmp/13079/tmp//847718.jpg ../tmp/13079/tmp//847718.jpg ) (1.0524809360504, 0.0002129077911377)
2022-01-12 12:26:32: Creating thumb ../tmp/13079/tmp//24402.webp.tmp.webp -> ../tmp/13079/tmp//24402.webp  (1.0810461044312, 0.028558969497681)
2022-01-12 12:26:32: Identify /usr/bin//identify -verbose ../tmp/13079/tmp//24402.webp.tmp.webp (1.0811200141907, 6.8187713623047E-5)
2022-01-12 12:26:32: Size: 512x384 (../tmp/13079/tmp//24402.webp.tmp.webp) thumb: 512x384
			thumb_ratio: 1.3333333333333 img_ratio: 1.3333333333333 to ../tmp/13079/tmp//24402.webp (1.1445329189301, 0.063417911529541)
2022-01-12 12:26:32: IM Cmd custom : /usr/bin//convert   -resize 512x384^ -gravity Center -crop 512x384+0+0 -filter Blackman -strip ../tmp/13079/tmp//24402.webp.tmp.webp ../tmp/13079/tmp//24402.webp  (1.1447639465332, 0.00022602081298828)
2022-01-12 12:26:32: Thumb created, file size 42954 (1.20099401474, 0.056224822998047)

admin
Site Admin
Posts: 35144
Joined: Wed Sep 10, 2008 11:43 am

Re: extra thumb зачем два раза качать

Post by admin »

добавлено в ап кеширование
Have you done script update ?

Post Reply