gimp-image-set-unit ineffective on 2.67 for windows

View: New views
3 Messages — Rating Filter:   Alert me  

gimp-image-set-unit ineffective on 2.67 for windows

by Alan Campbell-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to get a script to generate an image with default units
(as displayed in status bar at bottom of image window)
to be mm instead of pixels. My script does

 (gimp-image-set-unit 2)

and I've even set default image grid (in preferences) in mm. No joy.

Can it be done?

Short exchange at

http://www.gimptalk.com/forum/gimp-image-set-unit--t45138.html

suggests not.

Thanks for any help.
Yrs,

Alan

Mind Like A Steel Trap --
Rusty And Illegal In 37 States


===================== +++++  =====================



_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: gimp-image-set-unit ineffective on 2.67 for windows

by Sven Neumann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2009-11-01 at 18:38 +0000, Alan Campbell wrote:
> Hi,
>
> I'm trying to get a script to generate an image with default units
> (as displayed in status bar at bottom of image window)
> to be mm instead of pixels. My script does

The units displayed in the status bar are the image's display units. The
display unit is different from the image unit and it can only be changed
by the user, not by a script.


Sven


_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Parent Message unknown Re: gimp-image-set-unit ineffective on 2.67 for windows

by Alan Campbell-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sven,

But I've set GIMP preferences Default Image and Image Size in mm, and
Default Grid in mm.

If I do File | New, image is displayed with mm units n status bar.  

Why doesn't that happen for an image created
from a template created from my script?  

Is there some other preference I should change?


> On Sun, 2009-11-01 at 18:38 +0000, Alan Campbell wrote:
> > I'm trying to get a script to generate an image with default
units
> > (as displayed in status bar at bottom of image window)
> > to be mm instead of pixels. My script does
 
> The units displayed in the status bar are the image's display
units. The
> display unit is different from the image unit and it can only be
changed
> by the user, not by a script.
 
> Sven



Yours,

Alan Campbell
BRIGHTON, UK

Every program has at least one bug and can
be shortened by at least one instruction
-- from which, by induction, one can
deduce that every program can be reduced to
one instruction which doesn't work.


===================== +++++  =====================

_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user