woocommerce offtopic - HTTP Error when uploading pictures and problem with the size of images

admin2025-06-03  2

Eveytime I want to upload an image I get an HTTP error. When I check for the image on the server though I can see that it has been uploaded. Only variations of the file of different sizes which seemingly get created upon the upload of the original image, seem to have 0 bytes (this may be due to the HTTP error?)

Also; another question: After uploading an image, in my woocommerce theme the image in my shop just looks too big or rectangular of different dimensions. Doesn't woocommerce automatically resize and adjust the images to they look all the same when previewing them in the shop?

There is an option somewhere where you can say that you want the image to be resized but once you do, the image will look low quality and parts of it will get cut out etc.

How do I go about uploading images of the product so that it will be all shown in the same square dimension in my shop?

Eveytime I want to upload an image I get an HTTP error. When I check for the image on the server though I can see that it has been uploaded. Only variations of the file of different sizes which seemingly get created upon the upload of the original image, seem to have 0 bytes (this may be due to the HTTP error?)

Also; another question: After uploading an image, in my woocommerce theme the image in my shop just looks too big or rectangular of different dimensions. Doesn't woocommerce automatically resize and adjust the images to they look all the same when previewing them in the shop?

There is an option somewhere where you can say that you want the image to be resized but once you do, the image will look low quality and parts of it will get cut out etc.

How do I go about uploading images of the product so that it will be all shown in the same square dimension in my shop?

Share Improve this question asked Feb 1, 2019 at 15:51 Pouyeah TreasurePouyeah Treasure 1
Add a comment  | 

1 Answer 1

Reset to default 0

For fixing HTTP error, follow these steps:

  1. Open the cPanel.
  2. Go to File Manager.
  3. Search for wp-content.
  4. Find uploads folder. Right-click on it and choose Change Permissions.
  5. A pop up will appear. Set the permission to 755.
  6. Finally, click on the Change Permissions button. You will find that the HTTP error has gone.

You can find more information about these steps right here.

Regarding too big images issue, add these CSS codes in the Custom CSS Box provided through the Customizer Options:

.woocommerce #primary .images img {
    width: auto;
}
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748951454a315097.html

最新回复(0)