houke / color-palette-generator

This WordPress plugin allows you to generate & show color palettes for all your images in your Media Library.
https://www.thearthunters.com/color-palette-generator-wordpress/
24 stars 6 forks source link

Todo: Generate palette on upload #1

Open maurivan opened 5 years ago

maurivan commented 5 years ago

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!

houke commented 5 years ago

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.

maurivan commented 5 years ago

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! ;)

houke commented 5 years ago

@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

maurivan commented 5 years ago

@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 :)

houke commented 5 years ago

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

maurivan commented 5 years ago

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 commented 5 years ago

WOWOWOWOOWOWO you're kidding me!

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

Thanks brother! 💃

houke commented 5 years ago

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.

🎄

maurivan commented 5 years ago

Another note: