Codeigniter image rotate when image resize |
I have an image with the dimension of (W-3000 X H-4000). When i upload it and resize, it always show like landscape mode, mean new dimension is w-1067 X h-800. I want to create this picture either 800X600 for landscape or 600X800 for portrait. Here is my code:
PHP Code: $config['upload_path'] = './uploads/'; In my code height is always 800px in size. It is ok for 3000X4000 dimension image. But what about when i use 4000X3000 dimension image? Can any one help me about this issue? Thanks
I fixed it with exif_read_data() . Here is my code:
Code: $config['upload_path'] = './uploads/'; Here is the exif orientation chart Code: 1 2 3 4 5 6 7 8 |
Welcome Guest, Not a member yet? Register Sign In |