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
 IEvolution, ImageResolution
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

kclaas

Germany
17 Posts

Posted - Feb 13 2013 :  02:13:45  Show Profile  Reply
I want change resolution of an Image.

I use the following code in visual studio with IEvolution

myimage.LoadImage(mysourcefile)
myimage.ChangeResolution(200, IEResampleFilter.Bicubic)
myimage.SaveImage(targetfile)

In Photshop the Resolution not changed but the pixelsize is reduced.


133.45 KB

Where is my mistake?

Regards Karsten

kclaas

Germany
17 Posts

Posted - Feb 14 2013 :  03:01:04  Show Profile  Reply
I want do that



regards karsten
Go to Top of Page

fab

1310 Posts

Posted - Feb 16 2013 :  10:07:28  Show Profile  Reply
ChangeResolution changes also the image size. If you need just to change the meta DPI info, set:

myimage.IOParams.DpiX = 200;
myimage.IOParams.DpiY = 200;
myimage.SaveImage(filename);
Go to Top of Page

kclaas

Germany
17 Posts

Posted - Feb 21 2013 :  07:50:29  Show Profile  Reply
Hi Fabrizio,

If I use this code

Dim myimage As New IEImage()
myimage.LoadImage("input.jpg")
myimage.IOParams.DpiX = 200
myimage.IOParams.DpiY = 200
myimage.SaveImage("output.jpg")

Nothing is changed in Photoshop.

Go to Top of Page

fab

1310 Posts

Posted - Feb 22 2013 :  02:08:40  Show Profile  Reply
Please send a sample image, there are several places where to store DPI meta info (some unsupported by ImageEn).
You should try also:

myimage.IOParams.DpiX = 200
myimage.IOParams.EXIF_XResolution = 200;
myimage.IOParams.DpiY = 200
myimage.IOParams.EXIF_YResolution = 200;

Above operation is done automatically on latest IEvolution versions.
Go to Top of Page

kclaas

Germany
17 Posts

Posted - Feb 22 2013 :  11:09:23  Show Profile  Reply
myimage.LoadImage("input.jpg")
myimage.IOParams.DpiX = 200
myimage.IOParams.EXIF_XResolution = 200
myimage.IOParams.DpiY = 200
myimage.IOParams.EXIF_YResolution = 200
myimage.SaveImage("output.jpg")

It doesn't work.

I use IEvolution 4.1.2.
I requested an upgrade twice on the downloadpage but I get no answer up today.

How can I send the input.jpg? It has more than 2 MB.

regards Karsten
Go to Top of Page

kclaas

Germany
17 Posts

Posted - Feb 26 2013 :  04:58:58  Show Profile  Reply
I sent an email with the image to support@hicomponents.com
Go to Top of Page

fab

1310 Posts

Posted - Feb 27 2013 :  02:33:45  Show Profile  Reply
This image contains also XMP tags (ImageEnVIew.IO.Params.XMP_Info), which contains "tiff:XResolution" and " tiff:YResolution" tags.
ImageEn doesn't touch XMP, unless you do it.
So you could write:

myimage.IOParams.XMP_Info = "";

However Windows properties on the file reports the right DPI (Windows doesn't read XMP tags).
Go to Top of Page

kclaas

Germany
17 Posts

Posted - Feb 27 2013 :  08:40:05  Show Profile  Reply
myimage.LoadImage("input.jpg")
Dim olddpi = myimage.DpiY
myimage.IOParams.XMP_Info = ""
myimage.IOParams.DpiX = 200
myimage.IOParams.EXIF_XResolution = 200
myimage.IOParams.DpiY = 200
myimage.IOParams.EXIF_YResolution = 200
myimage.SaveImage("output.jpg")

This code is not the solution, the result isn't changed! :-(
Go to Top of Page

fab

1310 Posts

Posted - Mar 01 2013 :  00:48:58  Show Profile  Reply
What do you see in Windows property of the file?

I see the changed values:

Go to Top of Page

kclaas

Germany
17 Posts

Posted - Mar 04 2013 :  01:25:11  Show Profile  Reply
In Windows are shown 200 dpi but not in Photoshop CS3.

I need after resave the correct resolution in Photoshop.


Go to Top of Page

fab

1310 Posts

Posted - Mar 04 2013 :  14:17:40  Show Profile  Reply
Please could you send me your ""output.jpg" resulting file?
Go to Top of Page

kclaas

Germany
17 Posts

Posted - Mar 05 2013 :  00:41:56  Show Profile  Reply
I have send you the output.jpg
Go to Top of Page

fab

1310 Posts

Posted - Mar 16 2013 :  04:13:26  Show Profile  Reply
It seems that CS3 stores DPI also inside other jpeg markers. Please try to set:

myimage.IOParams.SetToDefaultValues();
myimage.IOParams.DpiX = 200
..etc..

Unfortunately there isn't (as in ImageEn) a way to remove only jpeg markers. It will be possible in the next minor release (available soon).
Go to Top of Page

kclaas

Germany
17 Posts

Posted - Mar 19 2013 :  12:52:43  Show Profile  Reply
If I use

myimage.IOParams.SetToDefaultValues();

I lost all my iptc-informations but I need the iptc-data.

Regards Karsten
Go to Top of Page

kclaas

Germany
17 Posts

Posted - Apr 02 2013 :  00:41:01  Show Profile  Reply
myimage.IOParams.SetToDefaultValues() remove all iptc-informations.
Go to Top of Page

fab

1310 Posts

Posted - Apr 06 2013 :  03:51:24  Show Profile  Reply
Next minor version will have a new method to remove only jpeg markers, without calling SetToDefaultValues().
Go to Top of Page

kclaas

Germany
17 Posts

Posted - May 14 2013 :  00:08:41  Show Profile  Reply
I have another problem with IEvolution (Application crashs) and need an update to the uptodate version.

I have requested twice an update for IEvolution througth the downlod request form (http://www.imageen.com/support/downloadrequest.html ) to an uptodate version but I get no answer. The registration extension was orderd on 2012-08-14.

Can I download a new version anywhere?

Regards
Karsten
Go to Top of Page

kclaas

Germany
17 Posts

Posted - Jul 02 2013 :  01:21:40  Show Profile  Reply
Is there a new version 4.3.1 for remove only jpeg-header?
Go to Top of Page

xequte

39066 Posts

Posted - Jul 02 2013 :  03:37:15  Show Profile  Reply
Hi Karsten

We've received and processed several request from you over the last few months. I have also just email you the latest download link.

Please check your Spam folder if you do not receive it.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: