PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

how can i change the background colour of the product images?

25 replies to this topic
#1
MaRkiTuS_11

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
how can i change the background colour of the product images?

thanks

#2
andybr1ggs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 150 posts
http://www.digicamhe...ing/background/

#3
MaRkiTuS_11

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
you don't understand me. I want to change the colour of the white background of the mirror of the product images.

#4
ZuZu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 68 posts
Looking for that too!

#5
andybr1ggs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 150 posts

From 1253470210:

you don't understand me. I want to change the colour of the white background of the mirror of the product images.


I dont have a clue what you are talking about??

#6
MaRkiTuS_11

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
This image will explain you what I want

Attached Files



#7
andybr1ggs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 150 posts
there is an online service here to make background transparant:-

http://www.gifworks....m=transfer_open

(remember to turn pop-up blocker off) also copy and paste the link into your web browser the link seems to be broke when posted !

also:-

www.gimp.org is some amazing free image manipulation software

cheers.

#8
MaRkiTuS_11

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
I know how create ha transparent background but i don't know how put it in the product picture

#9
andybr1ggs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 150 posts
you going to have to be clearer in what you need!

#10
MaRkiTuS_11

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
Here another explanation with an image

http://img24.imagesh.../i/sta41505.png

#11
ZuZu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 68 posts
I think we both want the same and that is that if the picture is smaller than picture mirror, be able to chose what color to show instead of white.

#12
visua

    PrestaShop Newbie

  • Members
  • Pip
  • 24 posts
I understand exactly what you guys are saying.

I really think prestashop needs to strip out the automatic resizing/image processing.

It absolutely sucks. It's really counter intuitive for designers. I'm struggling with the same problem. I have my thumbnails the exact size I want them, but prestashop scales them, then re-scales them on my product pages, and its absolutely mind blowing how horrible this is.

Here is a link to my development shop so you can see how I'm having image/color problems as well.

http://97.74.74.236/...p?id_category=8

#13
MaRkiTuS_11

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
We will see if anyone can help us

#14
visua

    PrestaShop Newbie

  • Members
  • Pip
  • 24 posts
Let's hope so.

I've tried to overwrite the files located in img/p by locating the generated thumbnail file, and manually uploading the correct image (this would be tedious and a real problem if it even worked). But it doesn't. It seems prestashop has 'locked' write access to these folders. I've tried to chmod them and recursively change permissions to no avail.

I think a much more 'flexible' system, would to allow users to upload as many images they want, without cropping and resizing. Why does anyone need this feature in the first place? Honestly, most people designing shops have photoshop already, and would like more control over their images anyway. I feel i should be able to upload a thumbnail, and a separate product image for the detail page. Oh, and the files should be uploaded *AS IS*. I don't trust your code to make my files look better.

The resize/crop should just be an added feature option for people who are probably using the standard theme or configuration anyway.

This just really sucks guys. I'm going to have to abandon all the work i've done on this site if this is not doable. I simply cannot sacrifice product images and branding because the software won't let us use our own images.

UPDATE:

You can change the thumbnail size by going to Preferences > Images and changing the 'home' values to the width and height of your pre-prepared images.

This does not however, solve the problem of having different images for the product detail page!

#15
MaRkiTuS_11

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
Thanks, but i prefer to change the colour of the background

#16
jnktaylor

    PrestaShop Apprentice

  • Members
  • PipPip
  • 67 posts
Maybe this will work. I did not try it.
Find global.css in your template folder and look for the following code.

center_column div.products_block a.product_image {
display: block;
background-color: transparent;
width: 129px;
height: 129px;
margin-left:2px;
}


Change the background-color to any color you want.

Jack
www.tritonsgarden.com

#17
MaRkiTuS_11

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
Thanks, I will try it

#18
first1

    PrestaShop Addict

  • Moderators
  • 546 posts
Topic was moved.
If we answered your question, please add [Solved] at the beginning of your topic’s title by editing your first post !
Thanks.

#19
visua

    PrestaShop Newbie

  • Members
  • Pip
  • 24 posts
jnktaylor,

The problem with this, is that no matter what the files are converted to .jpg's. So even if i upload a png file with transparency, it will resize and automatically render a white background since JPG does not support transparency.

#20
Nhung Dieu Gian Di

    PrestaShop Newbie

  • Members
  • Pip
  • 13 posts
I was try change the code like jnktaylor said, but nothing happen lol