{"id":194,"date":"2023-11-26T01:35:05","date_gmt":"2023-11-26T01:35:05","guid":{"rendered":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/?p=194"},"modified":"2023-12-11T15:10:18","modified_gmt":"2023-12-11T15:10:18","slug":"generating-images-using-color-palettes","status":"publish","type":"post","link":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/2023\/11\/26\/generating-images-using-color-palettes\/","title":{"rendered":"Generating Images Using Color Palettes"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Generating images using DALL-E is extremely easy!  Generating two images that are very similar but slightly different is kind of hard&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One way I&#8217;ve been trying to generate consistent images is by passing specific colors in the prompt.  Here is an example prompt (pseudo code):<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Create an image with these properties {image properties} and these colors {list of colors}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">While DALL-E returns images with those colors as requested, about one time in every few dozen, DALL-E will return an image that contains a group of colored squares representing a color palette.  When I ask DALL-E <em>not<\/em> to return colored squares or a color palette, it seems to do so more often than not &#x1f602;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are some example images that I&#8217;ve generated when I either didn&#8217;t ask for the squares or asked not to get squares in return.  I hope this gets fixed!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a61b1684994a&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a61b1684994a\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image5-1024x585.webp\" alt=\"\" class=\"wp-image-200\" srcset=\"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image5-1024x585.webp 1024w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image5-300x171.webp 300w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image5-768x439.webp 768w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image5-1536x878.webp 1536w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image5.webp 1792w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a61b16849b57&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a61b16849b57\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image4-1-1024x585.webp\" alt=\"\" class=\"wp-image-204\" srcset=\"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image4-1-1024x585.webp 1024w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image4-1-300x171.webp 300w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image4-1-768x439.webp 768w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image4-1-1536x878.webp 1536w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/11\/Image4-1.webp 1792w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I will add more images as they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve been creating a lot of images for the holidays lately.  Here&#8217;s a New Years Eve image that looks great!  Except for the color squares&#8230;<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a61b16849d66&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a61b16849d66\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/12\/9E8FAFB3-02C0-44D9-86BC-63FA785F59BE-ED80CC79-9FD9-40B1-B796-C7A3F9CB6649-D2797104-926D-44A6-A35E-ECE0210A2632-1024x585.png\" alt=\"\" class=\"wp-image-264\" srcset=\"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/12\/9E8FAFB3-02C0-44D9-86BC-63FA785F59BE-ED80CC79-9FD9-40B1-B796-C7A3F9CB6649-D2797104-926D-44A6-A35E-ECE0210A2632-1024x585.png 1024w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/12\/9E8FAFB3-02C0-44D9-86BC-63FA785F59BE-ED80CC79-9FD9-40B1-B796-C7A3F9CB6649-D2797104-926D-44A6-A35E-ECE0210A2632-300x171.png 300w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/12\/9E8FAFB3-02C0-44D9-86BC-63FA785F59BE-ED80CC79-9FD9-40B1-B796-C7A3F9CB6649-D2797104-926D-44A6-A35E-ECE0210A2632-768x439.png 768w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/12\/9E8FAFB3-02C0-44D9-86BC-63FA785F59BE-ED80CC79-9FD9-40B1-B796-C7A3F9CB6649-D2797104-926D-44A6-A35E-ECE0210A2632-1536x878.png 1536w, https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-content\/uploads\/2023\/12\/9E8FAFB3-02C0-44D9-86BC-63FA785F59BE-ED80CC79-9FD9-40B1-B796-C7A3F9CB6649-D2797104-926D-44A6-A35E-ECE0210A2632.png 1792w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Generating images using DALL-E is extremely easy! Generating two images that are very similar but slightly different is kind of hard&#8230; One way I&#8217;ve been trying to generate consistent images is by passing specific colors in the prompt. Here is an example prompt (pseudo code): Create an image with these properties {image properties} and these [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":203,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-images"],"_links":{"self":[{"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":9,"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/posts\/194\/revisions\/267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/media\/203"}],"wp:attachment":[{"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metrosharesolutions.com\/blogs\/gpt\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}