additional
Home > Forum > Joomla components > JoomPortfolio > Need to change the item image background color
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Need to change the item image background color

Need to change the item image background color 6 years 8 months ago #19102

Hello - my production website pages have a background that is 'other than white'. When I upload my JoomPortfolio images and they are rendered in your nice component, the image is created with a white background. Is there a way to have the background specified (other than white)? Even if you can direct me to the code that handles this, that would be helpful. I could see nowhere in the user-settings to specify nor do I see where I can adjust the CSS. Any help is appreciated. Thank you.
Attachments:
The administrator has disabled public write access.

Re: Need to change the item image background color 6 years 8 months ago #19184

  • Maria
  • Maria's Avatar
  • OFFLINE
  • JoomPlace Team
  • Posts: 1662
  • Thank you received: 388
  • Karma: 36
Hello Linda,

To modify the background, please open file item.php in folder components\com_joomportfolio\controllers\.

Find string 65 or the like (it may differ depending on the component version.

Check the following code snippet: $trans = ImageColorAllocate($dest, 0, 0, 0);

Use 0,0,0 to specify colours as per RGB colour model.
JoomPlace Support Team
Last Edit: 6 years 3 months ago by Maria.
The administrator has disabled public write access.
The following user(s) said Thank You: Linda Jimerson

Re: Need to change the item image background color 6 years 8 months ago #19200

Thank you - that was the ticket. Linda Jimerson
The administrator has disabled public write access.

Re: Need to change the item image background color 6 years 3 months ago #20941

  • Sean McTague
  • Sean McTague's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Can you give an example of the values in that statement? there are like 8 Zeros with commas I am used to seeing one hex number?

Or thats a CMYK value?

In which case do you add it twice?
Last Edit: 6 years 3 months ago by Sean McTague.
The administrator has disabled public write access.

Re: Need to change the item image background color 6 years 3 months ago #20942

  • Maria
  • Maria's Avatar
  • OFFLINE
  • JoomPlace Team
  • Posts: 1662
  • Thank you received: 388
  • Karma: 36
Hi Sean,

This is RGB colour model.

I'm sorry, I must have mistyped the value.

Thank you for reporting this.
JoomPlace Support Team
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.129 seconds

We do our best to secure your data and to be
GDPR compliant.
However, we are not fully there yet.

With that said we'd like you to know that we use cookies.
We store user session cookie only to enable both registered and guest users to use the shopping cart.
Please note that 3rd party cookies may still be encountered on the pages with social media "share" and "like" buttons.

To ensure your privacy we have currently stopped using any analytics tools like Google Analytics.

We anonymize your IP address on the server side so your IP is not tracked by any means.

We DO NOT pass ANY of your data to 3rd parties.
We will do our best to provide maximum transparency in future if anything will change.

Also, we will store cookies to determine if you saw this message.