Codeigniter image rotate when image resize - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Codeigniter image rotate when image resize (/showthread.php?tid=64973) |
Codeigniter image rotate when image resize - ashisbiswas - 04-15-2016 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 RE: Codeigniter image rotate when image resize - ashisbiswas - 04-15-2016 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 |