Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Resolution management #29

Open
bf4 opened this Issue Jul 24, 2014 · 0 comments

Comments

Projects
None yet
1 participant
Owner

bf4 commented Jul 24, 2014

Issue by daniel2d2art
Saturday Feb 11, 2012 at 21:40 GMT
Originally opened as #46


Hi

I've next resource:

file: 300dpi.jpg
dimensions: 1782px x 1181px
size: 304539 bytes
resolution: 300dpi x 300dpi

when I use:

image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_1.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 300dpi x 300dpi
Result: Ok expected

Now I want to try reduce the resolution, I use:

image.density="72x72"
image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_2.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 72dpi x 72dpi
Result: resolutions seems change but size its the same at 300x300

No I try to reduze adding resample too, I use:

image.resample(72.0, 72.0)
image.density="72x72"
image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_3.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 72dpi x 72dpi
Result: resolutions seems the same 72x72 as above test, but size its the same at 300x300 too

???
How change resolutions works???, I don't get clareance about it on documentation, it's working ok?
How can I upload a image file (JPG, GIF, PNG) optional (TIFF, BMP), and transform they change resolution and resize?

Thanks

@ioquatix ioquatix added a commit that referenced this issue Sep 24, 2014

@ioquatix ioquatix Merge pull request #127 from u338steven/patch-20
Changed Image#resample to calling ResampleImage (related #29, #45)
2dbcff1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment