Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Todo: Generate palette on upload #1

Open
maurivan opened this issue Nov 18, 2018 · 9 comments
Open

Todo: Generate palette on upload #1

maurivan opened this issue Nov 18, 2018 · 9 comments
Labels

Comments

@maurivan
Copy link

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
Copy link
Owner

houke commented Nov 19, 2018

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
Copy link
Author

maurivan commented Dec 22, 2018

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
Copy link
Owner

houke commented Dec 22, 2018

@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
Copy link
Author

@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
Copy link
Owner

houke commented Dec 23, 2018

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
Copy link
Author

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
Copy link
Author

WOWOWOWOOWOWO you're kidding me!

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

Thanks brother! 💃

@houke
Copy link
Owner

houke commented Dec 24, 2018

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
Copy link
Author

Another note:

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

@houke houke added the bug label Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants