MMM-Instagram icon indicating copy to clipboard operation
MMM-Instagram copied to clipboard

how to resize images? how to make it big?

Open anisimovevgeniy opened this issue 9 years ago • 2 comments

anisimovevgeniy avatar Nov 27 '16 16:11 anisimovevgeniy

Currently don't have any support for allowing images to be resized. The code takes a specific size of the available sized images provided by instagram.

kapsolas avatar Jan 03 '17 16:01 kapsolas

While not proper, I was able to resize the images, @anisimovevgeniy, by modifying the modules\MMM-Instagram\MMM-Instagram.js file and adding an inline style to the image tag below:

` var tempimage = this.images.photo[this.activeItem];

    // image
    var imageLink = document.createElement('div');
    //imageLink.innerHTML = "<img src='https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png'>";
    imageLink.id = "MMM-Instagram-image";
    imageLink.innerHTML = "<img src='" + tempimage.photolink + "' style='margin-top:-100px;height:200px;width:auto;'>";

    imageDisplay.appendChild(imageLink);
    wrapper.appendChild(imageDisplay);

`

mhaddy avatar Feb 26 '17 03:02 mhaddy