kapsolas / MMM-Instagram

39 stars 12 forks source link

how to resize images? how to make it big? #6

Open anisimovevgeniy opened 7 years ago

kapsolas commented 7 years ago

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.

mhaddy commented 7 years ago

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);

`