[Skip to main content](#vessel-content)

#   Category and Product Thumbnail Black Background

##

- **[WEBZIGHT](/forum/user/38083-webzight "View WEBZIGHT's Profile")**
- [![WEBZIGHT's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38083.png)](/forum/user/38083-webzight "View WEBZIGHT's Profile") Topic Author
- [ Offline](/forum/user/38083-webzight)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 3 months ago -  11 years 3 months ago [\#210210](#210210) by [WEBZIGHT](/forum/user/38083-webzight "View WEBZIGHT's Profile")  *[Category and Product Thumbnail Black Background](/forum/26-product-category-display/878492-category-and-product-thumbnail-black-background#210210 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  I am having a problem with the category and product thumbnails having black bars at the top and bottom of all thumbnails made by HikaShop :huh:  The original images of the thumbs shown with black bars are GIF's while the one color thumb (Valves) and the Kings Kooker image originals, are JPEG images. See attached screen capture :dry:")* was created by *[WEBZIGHT](/forum/user/38083-webzight "View WEBZIGHT's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

I am having a problem with the category and product thumbnails having black bars at the top and bottom of all thumbnails made by HikaShop :huh:

The original images of the thumbs shown with black bars are GIF's while the one color thumb (Valves) and the Kings Kooker image originals, are JPEG images.
See attached screen capture :dry:

[ ![Category-Display.jpg](/forum/attachment/25766) ](/forum/attachment/25766 "...ry-Display.jpg")

- [ ![Category-Display.jpg](/forum/attachment/25766) ](/forum/attachment/25766 "...ry-Display.jpg") [ ](/forum/attachment/25766?download=1 "...ry-Display.jpg")

Last edit: 11 years 3 months ago by [WEBZIGHT](/forum/user/38083-webzight "View WEBZIGHT's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg0OTItY2F0ZWdvcnktYW5kLXByb2R1Y3QtdGh1bWJuYWlsLWJsYWNrLWJhY2tncm91bmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#210212](#210212) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Category and Product Thumbnail Black Background](/forum/26-product-category-display/878492-category-and-product-thumbnail-black-background#210212 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  I am having a problem with the category and product thumbnails having black bars at the top and bottom of all thumbnails made by HikaShop :huh:  The original images of the thumbs shown with black bars are GIF's while the one color thumb (Valves) and the Kings Kooker image originals, are JPEG images. See attached screen capture :dry:")*

Hi,

The HikaShop image helper extract the "background" color for the PNG and GIF images.
It allows the thumbnails to have use the transparency of the image. Code:

$bgcolor = $this-&gt;_getBackgroundColor($thumb, @$options['background']); if(in_array($extension,array('gif', 'png'))) { $palletSize = imagecolorstotal($img); if($transparentIndex &gt;= 0 &amp;&amp; $transparentIndex &lt; $palletSize) { $trnprt_color = imagecolorsforindex($img, $transparentIndex); $color = imagecolorallocate($thumb, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']); imagecolortransparent($thumb, $color); imagefill($thumb, 0, 0, $color);

So, I guess that your GIF images have a black background and no transparency.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg0OTItY2F0ZWdvcnktYW5kLXByb2R1Y3QtdGh1bWJuYWlsLWJsYWNrLWJhY2tncm91bmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WEBZIGHT](/forum/user/38083-webzight "View WEBZIGHT's Profile")**
- [![WEBZIGHT's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38083.png)](/forum/user/38083-webzight "View WEBZIGHT's Profile") Topic Author
- [ Offline](/forum/user/38083-webzight)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 3 months ago [\#210413](#210413) by [WEBZIGHT](/forum/user/38083-webzight "View WEBZIGHT's Profile")  Replied by *[WEBZIGHT](/forum/user/38083-webzight "View WEBZIGHT's Profile")* on topic *[Category and Product Thumbnail Black Background](/forum/26-product-category-display/878492-category-and-product-thumbnail-black-background#210413 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  I am having a problem with the category and product thumbnails having black bars at the top and bottom of all thumbnails made by HikaShop :huh:  The original images of the thumbs shown with black bars are GIF's while the one color thumb (Valves) and the Kings Kooker image originals, are JPEG images. See attached screen capture :dry:")*

Actually the GIF's only background is what ever HikaShop sets when it CREATES the 100X100 thumbnails!
I never had this happen with VirtueMart using the EXACT SAME GIF's??
When I look at the ORIGINATING FILES in Photoshop they do NOT show any transparency or background!
What is really going on here???

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg0OTItY2F0ZWdvcnktYW5kLXByb2R1Y3QtdGh1bWJuYWlsLWJsYWNrLWJhY2tncm91bmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

11 years 3 months ago [\#210416](#210416) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Category and Product Thumbnail Black Background](/forum/26-product-category-display/878492-category-and-product-thumbnail-black-background#210416 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  I am having a problem with the category and product thumbnails having black bars at the top and bottom of all thumbnails made by HikaShop :huh:  The original images of the thumbs shown with black bars are GIF's while the one color thumb (Valves) and the Kings Kooker image originals, are JPEG images. See attached screen capture :dry:")*

Hi,

That's because VirtueMart doesn't support using the background color of the GIF images and simply set a white background all the time.
If you want to avoid that in HikaShop, a simple solution is to turn off the "force size" setting of the HikaShop configuration.
That way, no background will be necessary.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg0OTItY2F0ZWdvcnktYW5kLXByb2R1Y3QtdGh1bWJuYWlsLWJsYWNrLWJhY2tncm91bmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
