RSS/Atom feed Twitter
Site is read-only, email is disabled

GimpZoomPreview usability

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

GimpZoomPreview usability Aurimas Juška 09 Feb 13:21
  GimpZoomPreview usability Sven Neumann 09 Feb 20:28
Aurimas Juška
2007-02-09 13:21:37 UTC (about 17 years ago)

GimpZoomPreview usability

Hi,

It uses GtkDrawingArea.

I don't see why you couldn't implement cropping with one of the GimpPreview widgets.

I tried to use GimpZoomPreview instead of GtkDrawingArea and want to tell you what I have found out.

As I understand it, GimpZoomPreview is designed to be very efficient for previewing various filters (in terms of required processing & memory). Unfortunately, it doesn't seem very usable as one might expect.

For a large preview widget uses area not larger than original image dimensions, so when you zoom in you see image only in that area and large parts of widget outside image area are drawn in background color. Moreover, it becomes unacceptably slow when scrolling. The design for small previews just doesn't seem to support large previews well. Therefore, chose GtkDrawingArea. BTW, is there any way to use gimp quick navigation widget with GtkScrollingWindow or ...?

In addition to this, GimpZoomPreview doesn't seem to work well with filters either. As far as I know, only nova.c (Supernova) uses it correctly, but it only renders based on a single selected point (it doesn't have to read & analize pixels, it only renders on them). If I understand GimpZoomPreview correctly, a plug-in has to scale pixel data outside preview viewport itself (it would be much harder to work if source & destination layers would have different dimensions). This is not a very easy task, if you don't scale the whole picture, but only required parts (for efficiency).

In conclusion, either I don't understand GimpZoomPreview (in that case some explanation would help) or its API should be improved to make it more usable.

Thanks.

Sven Neumann
2007-02-09 20:28:02 UTC (about 17 years ago)

GimpZoomPreview usability

Hi,

On Fri, 2007-02-09 at 14:21 +0200, Aurimas Juška wrote:

In conclusion, either I don't understand GimpZoomPreview (in that case some explanation would help) or its API should be improved to make it more usable.

I think you did not understand how to use the widget. But I have also not been able to follow your mail. So I don't know how to help you.

Perhaps a few remarks:

The navigation popup window is part of the GimpScrolledPreview base class. That class leaves a lot to implement. it's basically just a GtkScrolledWindow and a GimpPreviewArea. So you should be able to base your widget on this abstract class if GimpZoomPreview doesn't fit your needs.

A plug-in using GimpZoomPreview doesn't need to scale the source image itself. It can ask the core to provide a scaled-down version of the drawable. This API also allows to retrieve scaled-down subregions.

Sven