Question: In my project, i have to resize the image and then save it to a folder. However, i got a problem which some image will be bigger than the orginal's file size.

**resize method:**

```
    public Image reduce(Image sourceImage, string size)
    {
        double percent = Convert.ToDouble(size) / 100;
        int width = (int)(sourceImage.Width * percent);
        int height = (int)(sourceImage.Height *percent );
        var resized = new Bitmap(original, width, height);
        return resized;
    }

```

using:

```
//the code to get the image is omitted (in my testing, bmp format is fixed, however, other image formats are required)
//to test the size of original image
oImage.Save(Path.Combine(oImagepath), System.Drawing.Imaging.ImageFormat.Bmp);

Image nImage = resizeClass.reduce(oImage,"95");
nImage.Save(Path.Combine(nImagepath), System.Drawing.Imaging.ImageFormat.Bmp);

```

Result:

> 
> * The first saving of the image: 1920\*1080, fileSize: **6076KB**
> * The second saving of the image: 1824\*1026, fileSize: **7311KB** <= it should be less than 6076KB
> 
> 
> 

Image:

* [original](https://1drv.ms/i/s!AsdOBLg50clihVckCg_h89rsZZCG)
* [resized](https://1drv.ms/i/s!AsdOBLg50clihViS4FptecStVSMN)

**Update**

The Bit depth of original image is 24 which resized is 32. Is the problem here?

Answer: 
Did you know that it seems that you are using immutable.js? Check its docs <https://facebook.github.io/immutable-js/docs/#/Map>

Try:

```
console.log(this.props.rec.get('data').get('language'))
console.log(this.props.rec.get('data').get('owners').get(0))

```
This seem like [ES2015 Map](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Map) problem, and not related to React.

I believe entries has all the key-value pairs for the Map.