This is a migrated thread and some comments may be shown as answers.

Multi Page TIF/TIFF file in Image Editor

3 Answers 495 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Nisarg
Top achievements
Rank 1
Nisarg asked on 27 Jan 2016, 06:50 AM

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

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 29 Jan 2016, 08:40 AM
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
0
Nisarg
Top achievements
Rank 1
answered on 01 Feb 2016, 12:43 PM

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

 

0
Todor
Telerik team
answered on 04 Feb 2016, 07:52 AM
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
Tags
ImageEditor
Asked by
Nisarg
Top achievements
Rank 1
Answers by
Todor
Telerik team
Nisarg
Top achievements
Rank 1
Share this question
or