Multi Page TIF/TIFF file in Image Editor

4 posts, 0 answers
  1. Nisarg
    Nisarg avatar
    25 posts
    Member since:
    Dec 2011

    Posted 27 Jan Link to this post

    Hi,

    I have 2014.1.331.40 version.

    I want to show multi page TIF file in image editor and also edit it. It is just showing first page of the TIF file.

    Is there any option by which I can perform this functionality?

    Thanks

  2. Todor
    Admin
    Todor avatar
    168 posts

    Posted 29 Jan Link to this post

    Hello Nisarg,

    RadImageEditor for WPF provides support for TIFF/TIF images from 2015 Q3 release. So, it is normal a tiff image to not be imported at all in previous versions.

    If you are using a custom image provider, the issue might be caused by that exact image, or because of an issue in the implementation. However, it will be much easier for us to investigate and find what might be the issue if you send a sample demo project with the corresponding image attached where the issue is reproduced.

    Looking forward to your reply.

    Regards,
    Todor
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Nisarg
    Nisarg avatar
    25 posts
    Member since:
    Dec 2011

    Posted 01 Feb in reply to Todor Link to this post

    Hi Todor,

    I am not using Custom Image Editor.

    I also attached TIF image preview in Image Photo Viewer and Rad Image Editor.

    I am currently able to view first page of the multipage TIF file in image editor in my version 2014.1.331.40

    My MainWindow.xaml file is:

    <Window x:Class="TiffViewer.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
            Title="MainWindow" Height="350" Width="525" WindowState="Maximized">
        <Grid>
            <telerik:RadImageEditorUI x:Name="ridImage">
                
            </telerik:RadImageEditorUI>
        </Grid>
    </Window>

    and My MainWindow.xaml.cs file is:

    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;

    namespace TiffViewer
    {    
        public partial class MainWindow : Window
        {
            public MainWindow()
            {
                InitializeComponent();
                this.Loaded += MainWindow_Loaded;
            }

            void MainWindow_Loaded(object sender, RoutedEventArgs e)
            {
                try
                {              
                    Stream imageStreamSource = new FileStream("multipage_tiff_example.tif", FileMode.Open, FileAccess.Read, FileShare.Read);                
                    ridImage.Image = new Telerik.Windows.Media.Imaging.RadBitmap(imageStreamSource);               
                }
                catch (Exception _Exception)
                {
                    MessageBox.Show(_Exception.Message.ToString());
                }
            }      
        }
    }

    Is there any option by which I can show TIF image file as like Window Photo Viewer or any other option and can I edit it in Image Editor?

    Thanks

     

  5. Todor
    Admin
    Todor avatar
    168 posts

    Posted 04 Feb Link to this post

    Hello Nisarg,

    In the current version of RadImageEditor, the manipulation of multipage Tiff images is not available. This means you should create your own Tiff image format provider which handles such tiff images. Further, you should edit the editor's template in a way such files to be rendered.

    I hope this guidance help you to achieve the desired goal.

    Regards,
    Todor
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top