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 5 years 11 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 5 years 11 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: 5 years 6 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 5 years 11 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 5 years 6 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: 5 years 6 months ago by Sean McTague.
The administrator has disabled public write access.

Re: Need to change the item image background color 5 years 6 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.153 seconds