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

#   Categorie picture saving problem

##

- **[TanyaPro](/forum/user/1626-tanyapro "View TanyaPro's Profile")**
- [![TanyaPro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1626-tanyapro "View TanyaPro's Profile") Topic Author
- [ Offline](/forum/user/1626-tanyapro)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 7 months ago [\#11180](#11180) by [TanyaPro](/forum/user/1626-tanyapro "View TanyaPro's Profile")  *[Categorie picture saving problem](/forum/3-bug-report/11180-categorie-picture-saving-problem#11180 "Hello, I just installed the HikaShop and I created 4 categories. I tried to save a picture of the last categorie I created and the picture stays black after saving and I get this message:  Warning: imagecreatefromjpeg() &#91;function.imagecreatefromjpeg&#93;: gd-jpeg: JPEG library reports unrecoverable error: in /home/content/99/7225399/html/administrator/components/com&#95;hikashop/helpers/image.php on line 306  Warning: imagecreatefromjpeg() &#91;function.imagecreatefromjpeg&#93;: '/home/content/99/7225399/html/media/com&#95;hikashop/upload/gold-coins.jpg' is not a valid JPEG file in /home/content/99/7225399/html/administrator/components/com&#95;hikashop/helpers/image.php on line 306  Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/content/99/7225399/html/administrator/components/com&#95;hikashop/helpers/image.php on line 261  Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/99/7225399/html/administrator/components/com&#95;hikashop/helpers/image.php on line 295 What can i do to solve this problem? Peter")* was created by *[TanyaPro](/forum/user/1626-tanyapro "View TanyaPro's Profile")*

Hello,
I just installed the HikaShop and I created 4 categories. I tried to save a picture of the last categorie I created and the picture stays black after saving and I get this message:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/content/99/7225399/html/administrator/components/com_hikashop/helpers/image.php on line 306

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/content/99/7225399/html/media/com_hikashop/upload/gold-coins.jpg' is not a valid JPEG file in /home/content/99/7225399/html/administrator/components/com_hikashop/helpers/image.php on line 306

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/content/99/7225399/html/administrator/components/com_hikashop/helpers/image.php on line 261

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/99/7225399/html/administrator/components/com_hikashop/helpers/image.php on line 295
What can i do to solve this problem?
Peter

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMTE4MC1jYXRlZ29yaWUtcGljdHVyZS1zYXZpbmctcHJvYmxlbT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 7 months ago [\#11187](#11187) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Categorie picture saving problem](/forum/3-bug-report/11180-categorie-picture-saving-problem#11187 "Hello, I just installed the HikaShop and I created 4 categories. I tried to save a picture of the last categorie I created and the picture stays black after saving and I get this message:  Warning: imagecreatefromjpeg() &#91;function.imagecreatefromjpeg&#93;: gd-jpeg: JPEG library reports unrecoverable error: in /home/content/99/7225399/html/administrator/components/com&#95;hikashop/helpers/image.php on line 306  Warning: imagecreatefromjpeg() &#91;function.imagecreatefromjpeg&#93;: '/home/content/99/7225399/html/media/com&#95;hikashop/upload/gold-coins.jpg' is not a valid JPEG file in /home/content/99/7225399/html/administrator/components/com&#95;hikashop/helpers/image.php on line 306  Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/content/99/7225399/html/administrator/components/com&#95;hikashop/helpers/image.php on line 261  Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/99/7225399/html/administrator/components/com&#95;hikashop/helpers/image.php on line 295 What can i do to solve this problem? Peter")*

Hi,

The problem is between your file and the GD library of PHP which hikashop uses to handle your images. These error messages indicates that php was not able to open your file because it is not a valid image. It can happen if your image is a GIF image but that you changed the extension of the file to jpg for example. Also, please make sure that the file is saved in RGB format and not CMYK format as that can cause issues as well.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMTE4MC1jYXRlZ29yaWUtcGljdHVyZS1zYXZpbmctcHJvYmxlbT90bXBsPW1hcmtkb3du) 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.068 seconds

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