Jump to content

kenapa background image produk jadi hitam ?


yaga

Recommended Posts

tanya2 lagi..pas nyoba dilocalhost backgroundnya putih..begitu upload online jadi hitam..
saya uda coba rubah di image.inc dapet sumber dari forum english..
trust regenerate image..hasilnya sama..??
di local pake 1.2.2..yg di upload 1.2.4..apa memang ada pembaharuan untuk background imagenya???


terima kasih,

Link to comment
Share on other sites

  • 2 weeks later...

setelah mencari-cari akhirnya ketemu file image.inc dengan background image white..coba ganti terus gw generate malah muncul ini

Cannot write no-picture image to the category images folder. Please check the folder's writing permissions.
Cannot write manufacturer images. Please check the folder's writing permissions.
Cannot write no-picture image to the manufacturer images folder. Please check the folder's writing permissions.
Cannot write supplier images into the supplier images folder. Please check the folder's writing permissions.
Cannot write no-picture image into the suppliers images folder.
Please check its writing permissions.
Cannot write scene images into the scene images folder. Please check the folder's writing permissions.
Cannot write no-picture image into the scenes images folder.
Please check its writing permissions.
Cannot write no-picture image to the product images folder. Please check the folder's writing permissions.
Cannot write product image. Please check the folder's writing permissions.
An error occured while thumbnails' regeneration.

letak image folder cari2 nggak ktemu..terus perintah chmodnya gimana??aku cek phpnya versi 5
terima kasih sebelumnya..

Link to comment
Share on other sites

image.inc line 30-45

/* Allow to keep nice look even if resized */
               $white = imagecolorallocate($newImage, 255, 255, 255);
               imagefill($newImage, 0, 0, $white);
               imagecopyresampled($newImage, $imageGd, 0, 0, 0, 0, $ratioX, $size, $x, $y);
               imagecolortransparent($newImage, $white);

               /* Quality alteration and image creation */
               if ($imageType == 'gif')
                   imagegif($newImage, _PS_TMP_IMG_DIR_.$cacheImage);
               else
                   imagejpeg($newImage, _PS_TMP_IMG_DIR_.$cacheImage, 86);
           }
       }
       return '';
   }
   return '';




apakah ini sudah benar kalo kita generate image jadi background image white???

terima kasih sebelumnya..

Link to comment
Share on other sites

hello mas yaga, kalau di prestashop yang ada di saya, kode dari file images.inc.php sama seperti itu dan menghasilkan background gambar putih. iseng mau buat background hitam, ternyata tidak hanya satu tempat yang dirubah. untuk memastikan kodenya untuk warna putih, cari kode berikut

$white = imagecolorallocate($newImage,


dan pastikan nilainya

$white = imagecolorallocate($newImage, 255, 255, 255);


sebab kalau saya mau pakai warna hitam, kodenya seperti berikut

$white = imagecolorallocate($newImage, 0, 0, 0);


kode kode di atas muncul beberapa kali, belum sempat memastikan yang mana, jadinya ganti aja semua kemunculan kode diatas.
semoga berhasil.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 2 months later...
ana lihat kok tidak hitam, itu edit file images.inc.php yang sefolder dengan index.php


masa si mas? coba deh kalo di view produk..jadi belakangnya tu hitam. coba mas bandingkan dengan yang di islami.web.id itu ana lihat kalau di view produk backround produknya putih. yang diganti apanya mas? afwan ana baru ni mas. jazakallahu khairan sudah membantu.
Link to comment
Share on other sites

  • 1 month later...

ehm, aneh juga sih sebenarnya kok bisa begini. padahal kan itu sudah di release untuk download. coba download dari presta yg terbaru dan gunakan file images.inc.php atau edit langsung file images.inc.php cari angka 255 diganti ke 0 atau angka 0 diganti ke 255 (pilih salah satu cara) kemudian regenerate thumbnails. clear cache browser - refresh.

Link to comment
Share on other sites

  • 4 months later...
uda..clear..jadi putih skarang backgroundnya...thanks,,..

makasih atas pencerahannya.



mas bgm cara merubahnya saya tetap hitam? padahal saya ubah jadi

/* Allow to keep nice look even if resized */
$white = imagecolorallocate($newImage, 255, 255, 255);
imagefill($newImage, 0, 0, $white);
imagecopyresampled($newImage, $imageGd, 0, 0, 0, 0, $ratioX, $size, $x, $y);
imagecolortransparent($newImage, $white);
....
tapi hasilnya tetap hitam. mohon sharingnya mas

sy coba yg di threed sebelah
http://www.prestashop.com/forums/viewthread/15988/#71989
tapi pas dicoba ada error file permissionnya mau cari folder yang dituju nggak ketemu-ketemu
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...