ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem of orientation and Alpha Channel.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wesleybobato

Brazil
367 Posts

Posted - Jan 08 2016 :  09:43:04  Show Profile  Reply
TImageEnMView
Loads with Different Orientation Thumbnail when the StoryType Property = ietThumb

I added Some sample shots.



attach/wesleybobato/20161894211_Orientation.zip
4912.44 KB

TImageEnView.
Problem when using ImageEnView1. BlackValue ImageEnView1. IEBitmap. and IEBitmap. WhiteValue
When loading Images with Alpha Channels

I added an example for better understanding.

Thank you very much.

attach/wesleybobato/20161894128_DisplayAdjust.zip
23.47 KB

w2m

USA
1990 Posts

Posted - Jan 08 2016 :  12:28:10  Show Profile  Reply
Hi Wesley,

Add: uses iexHelperFunctions;
You can then use ImageEnView1.IO.LoadFromFileEx(ImageEnMView1.ImageFileName[idx], True, 0) to load the image with the same orientation as in the ImageEnMView1 with your demo.


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 08 2016 :  12:43:21  Show Profile  Reply
Hello Bill.

Thank you for your attention.
The Problem my Friend is that I would like to know if the JPEG Thumbnail File this with this style, or if this is a problem with ImageEN.

Because When I change the TimageEnMView. StoryType = Normal.
the Thumbnail Loads Correctly.

Every time I change the StoryType Property TImageEnMView loads the Thumbnail with Different Orientation

Thank you
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jan 08 2016 :  12:52:09  Show Profile  Reply
I do not think there is a problem. I suspect when you load the thumbnails the exif thumbnails are loaded with the exif orientation in the file. So to fix it just have to set some properties before loading the images:

procedure TForm1.FormCreate(Sender: TObject);
begin
ImageEnMView1.EnableAdjustOrientation := False;
ImageEnMView1.EnableLoadEXIFThumbnails := False;
ImageEnMView1.FillFromDirectory('G:\Projects\ImageEnTest\Orientation');
end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 08 2016 :  12:57:18  Show Profile  Reply
Hello Bill.

Thanks Again.
I can not change this EnableLoadEXIFThumbnails property to False;

Because I I get Extra speed on Loading of Thumbnails.

Weird that this happens Only with these Pictures
These photos are from an Iphone 4S
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 08 2016 :  12:59:20  Show Profile  Reply
Hello Bill.
If You Test With Other JPEG Loads Correctly
Only those of the Iphone :(
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jan 08 2016 :  13:01:38  Show Profile  Reply
Look at the EXIF values for EXIF_Orientation in your images. I suspect the IPhone 4S stores the rotation in the EXIF, but the others do not.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 08 2016 :  13:03:05  Show Profile  Reply
Hello Bill.

Thanks I Will Check Every Detail Then Post Again.

Have a great day.
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 08 2016 :  13:15:01  Show Profile  Reply
Hello Bill

You Confirm that there is a problem with Alpha Channel?
Because Me does not work BlackValue and WhiteValue.

Thank you
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jan 08 2016 :  14:39:02  Show Profile  Reply
I do not think BlackValue or WhiteValue will work with 32-bit images. To get it to work call ImageEnView1.RemoveAlphaChannel(true). Your Black and White value trackbars function here if you remove the alphachannel.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 08 2016 :  14:47:00  Show Profile  Reply
Hello Bill.

Thank you for your attention.

Unfortunately I can not Remove Alpha Channel, I need to keep them
I wonder if You can make it work with Alpha Channel?

Thank you very much.
Go to Top of Page

xequte

39053 Posts

Posted - Jan 10 2016 :  02:56:49  Show Profile  Reply
Hi Wesley

I believe Bill is right. When the store mode is set to ietThumb, then it uses the EXIF thumbnail of the image, which has been rotated automatically by the camera. However the image itself is not rotated.

You can probably resolve the issue by setting ImageEnView1.EnableAdjustOrientation to true.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 10 2016 :  10:58:35  Show Profile  Reply
Hello Nigel and Bill.
Thank You for Attention.

I solved the problem of Image Rotation.
Nigel has ImageEn Some BUG to use IEBitmap.WhiteValue and IEBitmap.BlackValue with Alpha Channel?
Go to Top of Page

xequte

39053 Posts

Posted - Jan 11 2016 :  17:43:13  Show Profile  Reply
Hi Wesley

How can I reproduce the WhiteValue/BlackValue issue?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 11 2016 :  17:51:38  Show Profile  Reply
Hi Nigel.

Please Download this File Here.
http://imageen.com/ieforum/attach/wesleybobato/20161894128_DisplayAdjust.zip

1 - Compile Example.
2 - Open Picture.
3 - Move TrackBar->BlackValue and Trackbar->WhiteValue

not Work because Have Alpha Channel.
if you Remove Alpha Channel Work Normal.

Thanks For you Attention

Good Day.
Go to Top of Page

xequte

39053 Posts

Posted - Jan 18 2016 :  03:24:21  Show Profile  Reply
Hi Wesley

We're adding support for Black/White adjustment on images with Alpha Channel in the next update (ready next week).

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 18 2016 :  08:00:17  Show Profile  Reply
Hello Nigel

Thank you very much for your attention, to solve this.

Have a wonderful Day.

Best regards.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: