Rotate +90° makes LZW-gray from G4-BW

Bugs and Suggestions in XnView MP or XnConvert MP which have been resolved.

Moderators: helmut, XnTriq, xnview

User avatar
Peter2
XnThusiast
Posts: 1280
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Rotate +90° makes LZW-gray from G4-BW

Post by Peter2 »

I have TIF, BW, Group 4. I try to rotate them 90°, here is my XBS:

Code: Select all

  <?xml version="1.0" encoding="UTF-8" ?> 
- <XnView_script version="1.0" name="TIFF_rot_90">
  <Rotate angle="90" smooth="false" color="#ffffff" /> 
- <Output folder="" filename="{Filename}_90_rot" case="0" format="TIFF">
  <Options overwrite="0" orgDate="false" keepMeta="false" keepICC="false" keepFolder="false" delOrg="false" multipage="false" allPages="true" openExplorer="false" /> 
  <TIFF compress="2" compressBW="6" oneStrip="false" /> 
  </Output>
  </XnView_script>
Is it rotated fine, but the resulting files are "Gray / LZW" - no matter if I select "Output = TIF" or "Output = same as input".

When I set "change color to BW" then it is OK

Code: Select all

<Change_color_depth method="0" dither="5" ncompo="-1" alpha="255"/>
Bug or feature?

Peter
XnView 2.50.2 German, Win 10
User avatar
XnTriq
Moderator & Librarian
Posts: 6021
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Rotate +90° makes LZW-gray from G4-BW

Post by XnTriq »

FYI: There's a similar discussion about how rotation changes the bit depth from 1bit to 8bit in XnView v1.9.
User avatar
Peter2
XnThusiast
Posts: 1280
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Rotate +90° makes LZW-gray from G4-BW

Post by Peter2 »

XnTriq wrote:FYI: There's a similar discussion about how rotation changes the bit depth from 1bit to 8bit in XnView v1.9.
Thanks. The result is:
Option "Smooth / Antialiasing must be selected.
Right?

Peter
XnView 2.50.2 German, Win 10
User avatar
XnTriq
Moderator & Librarian
Posts: 6021
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Rotate +90° makes LZW-gray from G4-BW

Post by XnTriq »

This works in XnView v1.9, but not in XnConvert v1.1 :?
User avatar
Peter2
XnThusiast
Posts: 1280
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Rotate +90° makes LZW-gray from G4-BW

Post by Peter2 »

XnTriq wrote:This works in XnView v1.9, but not in XnConvert v1.1 :?
For me it works fine.

Input: TIF, BW, Group 4
Output without "Smooth": TIF LZW, Gray
Output with "Smooth": TIF G4 BW

Peter
XnView 2.50.2 German, Win 10
User avatar
xnview
Author of XnView
Posts: 37750
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Rotate +90° makes LZW-gray from G4-BW

Post by xnview »

It's the inverse :) and must not smooth if -90/90°
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1280
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Rotate +90° makes LZW-gray from G4-BW

Post by Peter2 »

xnview wrote:It's the inverse :) and must not smooth if -90/90°
:?: :?: :?:

Peter
XnView 2.50.2 German, Win 10
User avatar
xnview
Author of XnView
Posts: 37750
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Rotate +90° makes LZW-gray from G4-BW

Post by xnview »

Input: TIF, BW, Group 4
Output without "Smooth": TIF BW
Output with "Smooth", rotate -90,90,180: TIF BW
Output with "Smooth", rotate other angle: TIF Grey
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1280
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Rotate +90° makes LZW-gray from G4-BW

Post by Peter2 »

:!:
XnView 2.50.2 German, Win 10
User avatar
xnview
Author of XnView
Posts: 37750
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Rotate +90° makes LZW-gray from G4-BW

Post by xnview »

Please check XnViewMP 0.48
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1280
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Rotate +90° makes LZW-gray from G4-BW

Post by Peter2 »

xnview wrote:Please check XnViewMP 0.48
I tested it with TIF G4,
- set only "Rotation +90°" and
- did not set color or Smooth or something else

- and converted get rotated G4 files.

Seem to work fine.

Peter
XnView 2.50.2 German, Win 10