Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

Images, Greyscale and Joomlapolis

  • customs
  • customs
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
13 years 6 months ago #163146 by customs
Images, Greyscale and Joomlapolis was created by customs
All,

I don't know how to do it, but when I checked php.net/manual/en/function.imagefilter.php I came across the following php code for presenting images in greyscale:

<?php
$image = imagecreatefrompng('nathalie.png');

imagefilter($image, IMG_FILTER_GRAYSCALE);

imagepng($image, 'img_filter_grayscale.png');

imagedestroy($image);
?>

Would there be a way to integrate the above code with the Joomlapolis CB login (as a plugin?) so that site visitors would only see images in greyscale, yet logged in members would be able to see images in full colour?

Appreciate any suggestions.

Sincerely,
Customs

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum