{"id":5618,"date":"2020-05-31T13:35:00","date_gmt":"2020-05-31T13:35:00","guid":{"rendered":"https:\/\/musilda.cz\/?p=5618"},"modified":"2020-05-31T13:35:00","modified_gmt":"2020-05-31T13:35:00","slug":"seznam-vsech-velikosti-nahledovych-obrazku","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/seznam-vsech-velikosti-nahledovych-obrazku\/","title":{"rendered":"Seznam v\u0161ech velikost\u00ed n\u00e1hledov\u00fdch obr\u00e1zk\u016f"},"content":{"rendered":"\n

Ke ka\u017ed\u00e9mu nahran\u00e9mu obr\u00e1zku si WordPress vytv\u00e1\u0159\u00ed zmen\u0161en\u00e9 verze, kter\u00e9 si ukl\u00e1d\u00e1 do slo\u017eky uploads. Po n\u011bjak\u00e9 dob\u011b je tato slo\u017eka p\u0159epln\u011bn\u00e1 soubory a \u0159ada webmaster\u016f si ani nen\u00ed jist\u00e1, zda se v\u0161echny velikosti pou\u017e\u00edvaj\u00ed. <\/p>\n\n\n\n

WordPress m\u00e1 n\u011bkolik defaultn\u00edch velikost\u00ed, kter\u00e9 vytv\u00e1\u0159\u00ed automaticky – thumbnail, medium, large. <\/p>\n\n\n\n

Ka\u017ed\u00e1 \u0161ablona a velk\u00e1 \u0159ada plugin\u016f si registruje vlastn\u00ed rozm\u011bry, co\u017e je spr\u00e1vn\u011b, proto\u017ee pot\u0159ebujete m\u00edt k dispozici obr\u00e1zky odpov\u00eddaj\u00edc\u00edch velikost\u00ed. <\/p>\n\n\n\n

Jak zjistit, jak\u00e9 v\u0161echny rozm\u011bry obr\u00e1zk\u016f jsou zaregistrov\u00e1ny?<\/h2>\n\n\n\n
\"\"<\/figure><\/div>\n\n\n\n

V posledn\u00ed dob\u011b jsem si obl\u00edbil takov\u00e9 men\u0161\u00ed pluginy, kter\u00e9 mohu pou\u017e\u00edvat na webech, kter\u00e9 ji\u017e n\u011bjakou dobu funguj\u00ed a nikdo u\u017e nev\u00ed, co kdy a kde bylo nainstalov\u00e1no, pou\u017eito a podobn\u011b. <\/p>\n\n\n\n

Kdy\u017e p\u016fjdete do Nastaven\u00ed ->M\u00e9dia, uvid\u00edte takov\u00e9 nastaven\u00ed:<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

To jsou v\u00fdchoz\u00ed velikosti, kter\u00e9 pou\u017e\u00edv\u00e1 WordPress. My si nainstalujeme plugin Simple Image Sizes, kter\u00fd je zdarma na WordPress.org a ten n\u00e1m pod nastaven\u00ed p\u0159id\u00e1 dal\u0161\u00ed tabulku, kter\u00e1 obsahuje seznam v\u0161ech zaregistrovan\u00fdch velikost\u00ed a p\u0159id\u00e1 mo\u017enost je upravovat. <\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Velikost, kter\u00e9 maj\u00ed na za\u010d\u00e1tku shop a woocommerce definuje WooCommerce plugin. Obr\u00e1zky, kter\u00e9 maj\u00ed na za\u010d\u00e1tku shopical, pat\u0159\u00ed \u0161ablon\u011b. Co\u017e znamen\u00e1, \u017ee ke ka\u017ed\u00e9mu nahran\u00e9mu obr\u00e1zku si plugin ud\u011bl\u00e1 dal\u0161\u00edch 14. <\/p>\n\n\n\n

Zde n\u00e1m plugin umo\u017e\u0148uje zm\u011bnit velikosti ur\u010dit\u00fdch n\u00e1hled\u016f a z\u00e1rove\u0148 n\u00e1m v dal\u0161\u00edm formul\u00e1\u0159i umo\u017en\u00ed n\u00e1hledy regenerovat. V\u00fdhodn\u00e1 je mo\u017enost, generovat jen to co jsme zm\u011bnili, a\u0165 se zbyte\u010dn\u011b nezat\u011b\u017euje server.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Pokud tedy chcete m\u00edt p\u0159ehled v definovan\u00fdch velikostech a p\u0159\u00edpadn\u011b n\u00e1hledy p\u0159egenerovat, mohu plugin jen doporu\u010dit, osobn\u011b jsem odzkou\u0161el na eshopu s p\u011bti tis\u00edci produkty a p\u0159egenerov\u00e1n\u00ed \u0161lo hladce. <\/p>\n","protected":false},"excerpt":{"rendered":"

Ke ka\u017ed\u00e9mu nahran\u00e9mu obr\u00e1zku si WordPress vytv\u00e1\u0159\u00ed zmen\u0161en\u00e9 verze, kter\u00e9 si ukl\u00e1d\u00e1 do slo\u017eky uploads. Po n\u011bjak\u00e9 dob\u011b je tato slo\u017eka p\u0159epln\u011bn\u00e1 soubory a \u0159ada webmaster\u016f si ani nen\u00ed jist\u00e1, zda se v\u0161echny velikosti pou\u017e\u00edvaj\u00ed. WordPress m\u00e1 n\u011bkolik defaultn\u00edch velikost\u00ed, kter\u00e9 vytv\u00e1\u0159\u00ed automaticky – thumbnail, medium, large. Ka\u017ed\u00e1 \u0161ablona a velk\u00e1 \u0159ada plugin\u016f si registruje<\/p>\n","protected":false},"author":1,"featured_media":8644,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[49,31],"tags":[],"class_list":["post-5618","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-obrazky","category-wordpress-pluginy"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5618"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=5618"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5618\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8644"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=5618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=5618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=5618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}