Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [image-resizing]

The tag has no usage guidance.

2
votes
1answer
26 views

Magento 2.3.0 product image cache resizing images to look very bad

i have uploaded images to magento 2.3 and when i look on product page i can see it been resizing to different size with white lines. look at original image that has been uploaded: https://...
1
vote
2answers
101 views

How to resize Image in Magento 2?

I want to resized image of subcategory. for that, I added this code in .phtml file.I'm getting wrong path for image <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ...
0
votes
0answers
40 views

Magento 2: Error when running resize command

I'm trying to run the following command in SSH Magento 2.2.7 php bin/magento catalog:images:resize But every time I try I get the following Error: File '/var/www/vhosts/website.com/httpdocs/pub/...
0
votes
1answer
82 views

Image Resize not working for catalog images magento 2.3

Please check the below code app\code\Vendor\Category\etc\di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/...
0
votes
1answer
30 views

resize image without loss quality in magento 2

I want to resize image without loss quality in magento 2 i used code $imageResize = $this->_imageFactory->create(); $imageResize->open($absolutePath); $imageResize->constrainOnly(TRUE)...
0
votes
0answers
72 views

Magento 2 : Change image sizes in fotorama

How do I change the images sizes of the fotorama gallery ? From what I understand I need to edit my view.xml But what Image Id's do I need to change please. Also do I need to run some mage command ...
0
votes
1answer
64 views

Magento 2.2.x Product Image automatic Resize when height more than 1200px

Magento 2.2.x Product Image automatic resize when height more than 1200px Might be default m2 bug. LMK how to fix that problem?
0
votes
0answers
71 views

resize images on magento 2.2

I want to make my images (products) smaller. I am using magento 2.2 but i only have the option for product image placeholders and no other option to resize all images. Please help as it is for our e-...
0
votes
2answers
339 views

Magento 1.9 - Resize images

I create a custom module in Magento 1.9 to upload some images. But I want to have this big images as a thumbnails too, how I can made a resize of the big images? if(isset($_FILES['image']['name'])...
2
votes
1answer
234 views

get image by position and resize

I need to get images by its position and I need each image resized to a concrete heigh and width. If I want a image by its position I can do it by this code: $_product ->getMediaGalleryImages(...
5
votes
2answers
1k views

Magento 2: Getting “Warning: getimagesize(): Filename cannot be empty” after switching to a new empty theme with no parent

I wanted to start building a theme from scratch & my first step was to create a new theme with "Blank" as a parent. I then browsed a few pages & saw that everything works just fine. On the ...
0
votes
1answer
69 views

How to resize pictures from list page on Magento 2

I tried to set the product pictures from category page to 800x800 px and i can't. Be default the picutres size is 270x270 px; I changed in view.xml the values for this fields into 800x800 px but ...
0
votes
1answer
1k views

How to resize image of product view page in Magento 2?

I want to resize product view gallery image. I want to resize main product image to 500X500 size? How can we achieve this?
1
vote
0answers
51 views

Magento image resizing - own method

Is Magento preparing images while the page is loaded by the device or use cached images regardless the device size? If it creates and caching images - same for each device - I would like to change it ...
2
votes
1answer
1k views

Resize and Crop to set width/height without stretching

I am trying to get magento 2 to resize my images to a set width and height then crop them to the correct dimensions. I am trying to do this via view.xml and php but both are running into the same ...
0
votes
1answer
743 views

Image resizing not working if height and width values are different

I am trying below code to resize height and width of image. If i give resize(350 ,250) instead of resizing , its displaying image 350px away from left and 250px away from top from its original ...
1
vote
0answers
217 views

Catalog images resize command not working in Magento 2?

Catalog images not resizing as per view.xml dimensions. php bin/magento catalog:images:resize This command run successfully but still not resizing images. What is the reason behind it? Can somebody ...
1
vote
2answers
1k views

magento product resized image optimization

I have optimized product images: when I upload those in admin they remain as optimized. However, in fronted when I resize images with cache, these already optimized images need to be optimized. How ...
2
votes
1answer
45 views

What are the different parts of an image URL, and how to generate new sizes?

I have an image URL like this: http://example.com/media/catalog/product/cache/1/thumbnail/65x65/9df78eab33525d08d6e5fb8d27136e95/r/a/random-product_8.jpg What is the meaning of the "...
0
votes
0answers
47 views

Magento jQuery Image Scaling issue, image not resizing

We have just moved to a new server & we have around 800+ cms pages with images. Some of the pages have images where we have used tag to specify the width & height, but the issue is the images ...
1
vote
0answers
176 views

Using Magento resize vs uploading already resized images

We have custom magento review module that have lots of 70x70 image icons which when clicked load big images. Currently we manually resize them and upload 2 version of files - big image 640x480, and ...
1
vote
1answer
2k views

Magento 2 - Why is product image size & dimensions changed after upload?

When uploading new images to a product in Magento 2, it is not only decreasing the dimensions of the image, but it's increasing the image file size: Image Details Before Upload Dimensions: 1185 × ...
0
votes
2answers
422 views

Home page product slider image resize issue

I want a image of size 550x550 for single product slider, but my slider is getting small_image and resize into size 270 x270, this leads image to be blur. I have checked at my end and found that it is ...
1
vote
2answers
686 views

Magento 2 resize swatches images

I want to resize swatch images See this http://awesomescreenshot.com/0d466soja3 We will change this color swatches to product images and i want to resize this & if we can remove this resize ...