color-palette-generator icon indicating copy to clipboard operation
color-palette-generator copied to clipboard

Todo: Generate palette on upload

Open maurivan opened this issue 7 years ago • 9 comments
trafficstars

Do you have plans to make " Generate palette on upload" available? How is the development?

I ask you why I liked your script and would like to use this functionality (I'm a designer, frontend - I do not know how to program in PHP) :)

Nice plugin, congrats bro!

maurivan avatar Nov 18 '18 14:11 maurivan

Not in the very near future, but definitely something I'd like to include when I have some time :). Will keep this issue open so I can update you when I've added a solution.

houke avatar Nov 19 '18 20:11 houke

Hey @houke It's possible to show the color pallete without show the image?

Here is the code I am using: <? php echo do_shortcode ('[colorpalette attachment = "' get_post_thumbnail_id ()." "dominant =" false "colors =" 5 "] '); ?>

But I would like to display only the colors of the feature image but without displaying on the screen the feature image is possible?

Thanks bro! ;)

maurivan avatar Dec 22 '18 18:12 maurivan

@maurivan If I am right, there is a shortcode like this: [colorpalettes attachments="21, 28, 32" colors="5"]

So colorpalettes instead of colorpalette. You define the id of the attachment and it'll only show the palette of that image. Optionally you can define how many colors you want to show

houke avatar Dec 22 '18 18:12 houke

@houke It worked, but in this way it displays all the color palettes with the combinations - I would like to display only 1 palette - Is it possible?

Thanks :)

maurivan avatar Dec 23 '18 13:12 maurivan

That's where the attachments param should be for. If you enter the ID of the attachment of which you want to show the palette, only that palette will be shown

houke avatar Dec 23 '18 15:12 houke

Awesome, thank you! - This plugin is perfect! only missing it generate the color palette automatically when the user made some uploads! -- Perfect thank you!

maurivan avatar Dec 23 '18 23:12 maurivan

WOWOWOWOOWOWO you're kidding me!

1.7.0 Added support for automatic generation of palettes. Disabled by default.

Thanks brother! 💃

maurivan avatar Dec 24 '18 15:12 maurivan

Haha, yeah, I had to have a look at the possibilities. It's a first version (and that's why I made it a disabled by default option). Apparently there are like 3 or 4 different uploader scripts in WP, so it won't work everywhere yet.

I'll leave this issue open for now, so I can improve in the future.

🎄

houke avatar Dec 24 '18 18:12 houke

Another note:

  • Your page in templates/search.php is displaying posts that are in draft. and .. merry xmas! :)

maurivan avatar Dec 24 '18 18:12 maurivan