{"id":10097,"date":"2023-02-24T08:37:43","date_gmt":"2023-02-24T08:37:43","guid":{"rendered":"https:\/\/source.wpopal.com\/printec\/?page_id=6963"},"modified":"2025-07-03T10:31:33","modified_gmt":"2025-07-03T08:31:33","slug":"designer","status":"publish","type":"page","link":"https:\/\/drukarnia-danpol.pl\/en\/designer\/","title":{"rendered":"Designer"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"10097\" class=\"elementor elementor-10097\">\n\t\t\t\t<div class=\"elementor-element elementor-element-651259ec e-flex e-con-boxed e-con e-parent\" data-id=\"651259ec\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\n\t\t<div class=\"elementor-element elementor-element-23a635ab elementor-widget elementor-widget-text-editor\" data-id=\"23a635ab\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div id=\"ai-image-generator\" style=\"max-width:700px; font-family:sans-serif; margin:auto;\">\n  <h2>\ud83e\udde0 AI Graphic Inspiration Generator<\/h2>\n  <p>\n    Select a project type and generate unique graphics using artificial intelligence. Images contain no text and can be used as a background or as inspiration for further work in a graphics editor.\n  <\/p>\n  <p style=\"font-size: 0.9em; color: #555;\">\n    \ud83d\udd04 You can experiment with different themes and styles to get the best effect.\n  <\/p>\n\n  <hr style=\"margin: 20px 0;\"\/>\n\n  <label for=\"ai-type\"><strong>Project type:<\/strong><\/label><br\/>\n  <select id=\"ai-type\" style=\"width:100%; padding: 6px;\">\n    <option value=\"book_cover\">Book cover<\/option>\n  <\/select><br\/><br\/>\n\n  <label for=\"ai-topic\"><strong>Graphics theme:<\/strong><\/label><br\/>\n  <input type=\"text\" id=\"ai-topic\" placeholder=\"For example, a thriller set in Warsaw in the 1930s.\" style=\"width:100%; padding: 6px;\" \/><br\/><br\/>\n\n  <label for=\"ai-style\"><strong>Graphic style:<\/strong><\/label><br\/>\n  <select id=\"ai-style\" style=\"width:100%; padding: 6px;\">\n    <option value=\"flat design\">Flat design<\/option>\n    <option value=\"minimalistyczny\">Minimalist<\/option>\n    <option value=\"retro\">Retro<\/option>\n    <option value=\"elegancki\">Elegant<\/option>\n    <option value=\"japo\u0144ski\">Japanese<\/option>\n  <\/select><br\/><br\/>\n\n  <button onclick=\"generateImage()\" style=\"padding:10px 20px; background:#0073aa; color:#fff; border:none; cursor:pointer;\">\ud83c\udfa8 Generate graphics<\/button>\n\n  <div id=\"ai-image-result\" style=\"margin-top:30px;\"><\/div>\n<\/div>\n\n<script>\nfunction generateImage() {\n  const type = document.getElementById('ai-type').value;\n  const topic = document.getElementById('ai-topic').value;\n  const style = document.getElementById('ai-style').value;\n  const resultBox = document.getElementById('ai-image-result');\n  resultBox.innerHTML = '\ud83d\udd8c\ufe0f Generuj\u0119 grafik\u0119, prosz\u0119 czeka\u0107...';\n\n  let fullPrompt = '';\n\n  if (type === 'flyer') {\n    fullPrompt = `\n      Zaprojektuj atrakcyjn\u0105 i nowoczesn\u0105 ulotk\u0119 reklamow\u0105 w stylu ${style}.\n      Temat: ${topic}.\n      Nie umieszczaj \u017cadnych napis\u00f3w na grafice.\n      Styl graficzny: estetyczny, z ikonografik\u0105 zwi\u0105zan\u0105 z tematyk\u0105.\n      Uk\u0142ad pionowy, gotowy do druku w formacie A5.\n      Zastosuj wyraziste kolory (np. czerwony, be\u017cowy, zielony, czarny), dobr\u0105 typografi\u0119 i odpowiedni kontrast.\n      Inspiracja: katalog IKEA, japo\u0144ski minimalizm, reklamy z lat 60.\n      Nie pokazuj ludzi. Unikaj zdj\u0119\u0107 \u2013 u\u017cyj prostych grafik, ilustracji, ikon.\n    `;\n  } else if (type === 'book_cover') {\n    fullPrompt = `\n      Zaprojektuj klimatyczn\u0105 ok\u0142adk\u0119 ksi\u0105\u017cki w stylu ${style}.\n      Temat: ${topic}.\n      Nie umieszczaj \u017cadnych napis\u00f3w ani tytu\u0142u na grafice.\n      Styl: artystyczny, nastrojowy, odpowiadaj\u0105cy tematyce ksi\u0105\u017cki.\n      Uk\u0142ad pionowy, odpowiedni do druku jako ok\u0142adka ksi\u0105\u017cki formatu A5.\n      U\u017cyj pasuj\u0105cej kolorystyki, harmonijnych kompozycji i detali wizualnych.\n      Unikaj zdj\u0119\u0107 i postaci \u2013 skup si\u0119 na ilustracjach, teksturach, symbolach lub krajobrazach.\n    `;\n  }\n\n  fetch('\/wp-json\/ai\/v1\/generate-image', {\n    method: 'POST',\n    headers: { 'Content-Type': 'application\/json' },\n    body: JSON.stringify({ prompt: fullPrompt })\n  })\n  .then(res => res.json())\n  .then(data => {\n    if (data.url) {\n      resultBox.innerHTML = `\n        <p><strong>\u2705 Wygenerowana grafika:<\/strong><\/p>\n        <img decoding=\"async\" src=\"${data.url}\" style=\"max-width:100%; border:1px solid #ccc; padding:5px;\" \/>\n        <br\/><a href=\"${data.url}\" download target=\"_blank\" style=\"display:inline-block; margin-top:10px;\">\u2b07\ufe0f Pobierz grafik\u0119<\/a>\n        <p style=\"font-size:0.9em; color:#777; margin-top:10px;\">Inspiracja wygenerowana przez AI na podstawie wybranego typu, stylu i tematu.<\/p>\n      `;\n    } else {\n      resultBox.innerHTML = '\u274c Nie uda\u0142o si\u0119 wygenerowa\u0107 obrazka.';\n    }\n  })\n  .catch(() => {\n    resultBox.innerHTML = '\u274c Wyst\u0105pi\u0142 b\u0142\u0105d po\u0142\u0105czenia z serwerem.';\n  });\n}\n<\/script>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde0 Generator inspiracji graficznych z AI Wybierz typ projektu i wygeneruj unikaln\u0105 grafik\u0119 przy pomocy sztucznej inteligencji. Obrazy nie zawieraj\u0105 tekstu i mog\u0105 by\u0107 wykorzystane jako t\u0142o lub inspiracja do dalszej pracy w edytorze graficznym. \ud83d\udd04 Mo\u017cesz eksperymentowa\u0107 z r\u00f3\u017cnymi tematami i stylami, aby uzyska\u0107 najlepszy efekt. Typ projektu: Ok\u0142adka ksi\u0105\u017cki Temat grafiki: Styl graficzny: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-10097","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/drukarnia-danpol.pl\/en\/wp-json\/wp\/v2\/pages\/10097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/drukarnia-danpol.pl\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/drukarnia-danpol.pl\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/drukarnia-danpol.pl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/drukarnia-danpol.pl\/en\/wp-json\/wp\/v2\/comments?post=10097"}],"version-history":[{"count":0,"href":"https:\/\/drukarnia-danpol.pl\/en\/wp-json\/wp\/v2\/pages\/10097\/revisions"}],"wp:attachment":[{"href":"https:\/\/drukarnia-danpol.pl\/en\/wp-json\/wp\/v2\/media?parent=10097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}