Move a layer to specific X,Y position in Gimp Announcing the arrival of Valued Associate #679:...

Complexity of many constant time steps with occasional logarithmic steps

When is phishing education going too far?

Strange behaviour of Check

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

What loss function to use when labels are probabilities?

Antler Helmet: Can it work?

3 doors, three guards, one stone

Two different pronunciation of "понял"

Unexpected result with right shift after bitwise negation

What do you call a plan that's an alternative plan in case your initial plan fails?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

How to market an anarchic city as a tourism spot to people living in civilized areas?

What would be Julian Assange's expected punishment, on the current English criminal law?

Replacing HDD with SSD; what about non-APFS/APFS?

Do working physicists consider Newtonian mechanics to be "falsified"?

Is 1 ppb equal to 1 μg/kg?

If A makes B more likely then B makes A more likely"

How do we build a confidence interval for the parameter of the exponential distribution?

How can you insert a "times/divide" symbol similar to the "plus/minus" (±) one?

Estimate capacitor parameters

What LEGO pieces have "real-world" functionality?

How to rotate it perfectly?

Why is "Captain Marvel" translated as male in Portugal?

If I can make up priors, why can't I make up posteriors?



Move a layer to specific X,Y position in Gimp



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Move a selection to specific X,Y position in PhotoshopGimp: move layer above canvas background?How do I use the Selection tool to move things in GIMP?GIMP: Pastes into a zone within a layer?How to find layer dimensions in GimpExport layer to png file in gimpHow to move a box (stroked selection) in GIMP?Why does my floating selection disappear when I move it within a pasted layer?Get layer offset values in GIMP 2GIMP: Paste as New LayerIn gimp, how do I apply a transformation layer?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







54















How do I move a layer to a specific XY position within the canvas in Gimp?



Currently, the only way I can find is to just eyeball it with the guides and/or mouse position. I want to specify the exact X and Y coordinates.










share|improve this question

























  • I want to know this too, or how to do it in Photoshop. I made a question for that. superuser.com/questions/345669/…

    – Jonny
    Oct 12 '11 at 10:21






  • 1





    Does not seem to be (easily) possible in GIMP without using Python code as detailed below: graphicdesign.stackexchange.com/a/6813/8841

    – SabreWolfy
    Dec 2 '12 at 9:00













  • Yes it is possible. Read my answer.

    – David
    Jun 18 '15 at 11:40


















54















How do I move a layer to a specific XY position within the canvas in Gimp?



Currently, the only way I can find is to just eyeball it with the guides and/or mouse position. I want to specify the exact X and Y coordinates.










share|improve this question

























  • I want to know this too, or how to do it in Photoshop. I made a question for that. superuser.com/questions/345669/…

    – Jonny
    Oct 12 '11 at 10:21






  • 1





    Does not seem to be (easily) possible in GIMP without using Python code as detailed below: graphicdesign.stackexchange.com/a/6813/8841

    – SabreWolfy
    Dec 2 '12 at 9:00













  • Yes it is possible. Read my answer.

    – David
    Jun 18 '15 at 11:40














54












54








54


13






How do I move a layer to a specific XY position within the canvas in Gimp?



Currently, the only way I can find is to just eyeball it with the guides and/or mouse position. I want to specify the exact X and Y coordinates.










share|improve this question
















How do I move a layer to a specific XY position within the canvas in Gimp?



Currently, the only way I can find is to just eyeball it with the guides and/or mouse position. I want to specify the exact X and Y coordinates.







gimp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 7 '11 at 0:51









random

13k84757




13k84757










asked Jul 6 '11 at 22:44









ScottScott

371133




371133













  • I want to know this too, or how to do it in Photoshop. I made a question for that. superuser.com/questions/345669/…

    – Jonny
    Oct 12 '11 at 10:21






  • 1





    Does not seem to be (easily) possible in GIMP without using Python code as detailed below: graphicdesign.stackexchange.com/a/6813/8841

    – SabreWolfy
    Dec 2 '12 at 9:00













  • Yes it is possible. Read my answer.

    – David
    Jun 18 '15 at 11:40



















  • I want to know this too, or how to do it in Photoshop. I made a question for that. superuser.com/questions/345669/…

    – Jonny
    Oct 12 '11 at 10:21






  • 1





    Does not seem to be (easily) possible in GIMP without using Python code as detailed below: graphicdesign.stackexchange.com/a/6813/8841

    – SabreWolfy
    Dec 2 '12 at 9:00













  • Yes it is possible. Read my answer.

    – David
    Jun 18 '15 at 11:40

















I want to know this too, or how to do it in Photoshop. I made a question for that. superuser.com/questions/345669/…

– Jonny
Oct 12 '11 at 10:21





I want to know this too, or how to do it in Photoshop. I made a question for that. superuser.com/questions/345669/…

– Jonny
Oct 12 '11 at 10:21




1




1





Does not seem to be (easily) possible in GIMP without using Python code as detailed below: graphicdesign.stackexchange.com/a/6813/8841

– SabreWolfy
Dec 2 '12 at 9:00







Does not seem to be (easily) possible in GIMP without using Python code as detailed below: graphicdesign.stackexchange.com/a/6813/8841

– SabreWolfy
Dec 2 '12 at 9:00















Yes it is possible. Read my answer.

– David
Jun 18 '15 at 11:40





Yes it is possible. Read my answer.

– David
Jun 18 '15 at 11:40










5 Answers
5






active

oldest

votes


















28














I am afraid that Gimp doesn't include it because it is tedious. It is simply not the appropriate way of aligning elements when you are designing, though I recognize that sometimes it is useful as a short-cut. Anyway, the best (correct) approach is with guides:





A) Step 1 - Create the guides




  1. Go to Image->Guide->New Guide

  2. Specify if you want and horizontal or vertical guide

  3. Specify the number of pixels

  4. Repeat the procedure for another horizontal or vertical Guide (you can also do more guides to specify width and height)


Alternatively, you can also create the guides dragging from the rulers:




  1. Drag down (starting from the top ruler) a guide to the Y coordinate you want.

  2. Drag down (starting from the left ruler) a guide to the X coordinate you want.


B) Step 2 - Move the canvas



You can use the moving tool.




  1. Select your Layer

  2. Go to Tools -> Transform Tools -> Move

  3. Drag the Layer to the guides. Gimp will give you a hand with the exact pixels.




One of the design principle is that you should have things align in your whole project. Reducing the number of alignments (guides) helps you getting a cleaner design. I think this is why gimp does not include a tool to specify the exact coordinates. If you want to follow this design principle specifying exact coordinates one by one becomes just a tedious labour.






share|improve this answer


























  • Exactly what I need - thanks. Use case: creating a wallpaper for dual-head setup from two other wallpapers. :)

    – smbear
    Dec 10 '13 at 11:21



















19














There is a script to do this that can be download from the GIMP Plugin registry. It is called:



Move Layer To (download).



To install:




  1. Move the script to %USERPROFILE.gimp-2.8scripts directory on Windows, ~/Library/Application Support/GIMP/2.8/scripts on OS X or ~/.gimp-2.8/scripts on Linux. (Official instructions)


  2. Clicks Filters -> Script-Fu -> Refresh scripts.


  3. The new menu item will appear at the bottom of the Layer menu Move to.







share|improve this answer


























  • Nice first answer!

    – slm
    Jan 7 '13 at 4:21











  • Almost perfect! Would be nice if the parameter dialog used the layer's current coordinates as the default values.

    – Oliver Giesen
    Jan 25 '13 at 23:39






  • 4





    You need to download that .scm file and put it into %USERPROFILE%.gimp-2.8scripts on Windows, then do Filters->Script-Fu->Refresh Scripts and it will be available as the bottom most item Layer->Move To

    – DarkWalker
    Jan 10 '14 at 20:00








  • 2





    Davids answer does the job without a script.

    – Michael S.
    Oct 6 '15 at 8:41






  • 1





    Does NOT work for negative offset. and the UX is poor (don't keep the last value, etc).

    – Loda
    Nov 2 '15 at 15:35



















18















  1. Pick enter image description here (alignment tool).

  2. Make it Relative to Image.

  3. Click on your layer (in the canvas).

  4. Enter X in the Offset field.

  5. Click on Distribute / enter image description here (left arrow).

  6. Enter Y in the Offset field.

  7. Click on Distribute / enter image description here (up arrow).


That's it!






share|improve this answer





















  • 1





    This work for negative offset.

    – Loda
    Nov 2 '15 at 15:33






  • 1





    Note that it seems that you can only select the top visible layer — that is, one has to hide layers on top of the layer to be aligned (gimp 2.8.16).

    – Skippy le Grand Gourou
    Jul 22 '16 at 19:53











  • Does this use the unit of pixels? It seems to move my image far more than I would expect.

    – palswim
    Sep 7 '16 at 22:38











  • @palswim For me it worked when I clicked the top group of buttons (Align) instead of the bottom group (Distribute). Yes, it's measured in pixels (at least in my configuration).

    – Rodrigo
    Apr 9 '17 at 14:01



















10














I'm using GIMP 2.6.11.



With these lines of Python the active layer can be moved to an absolute position, like (32, 64), from the Python console:



>>> x_new = 32
>>> y_new = 64
>>> img = _[0]
>>> layer = img.active_layer
>>> x_off, y_off = layer.offsets
>>> pdb.gimp_layer_translate(layer, x_new - x_off, y_new - y_off)


Alternatively, if you only want to move the content of the layer:



right-click,
Layer > Transform > Offset



or Shft+Ctrl+O






share|improve this answer





















  • 1





    This causes the pixels within the layer to move, rather than the layer itself - I need to move the actual layer. What you suggested may work if the layer is the same size as the canvas, or at least big enough not to clip any non-transparent pixels within the layer.

    – Scott
    Jul 7 '11 at 19:55











  • @Scott: I see - sorry I didn't find an easier way, but at least I figured out how to move the layer to an absolute position with some lines of Python.

    – Nicolas Kaiser
    Jul 7 '11 at 21:32






  • 2





    Line three of you code should be img=gimp.image_list()[0]. The _ didnt work for me.

    – apple16
    Jul 23 '12 at 21:58



















0














There's a very convenient way to do this available since the Gimp v.2.10:




  1. double click on the layer you want to move (or right click on it
    and select "Edit Layer Attributes")


  2. the "Edit Layer Attributes" dialog will show up and there you can
    change the X/Y offsets to your needs



Simply easy like that! :)



Edit Layer X/Y Offsets Attributes






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f307368%2fmove-a-layer-to-specific-x-y-position-in-gimp%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    5 Answers
    5






    active

    oldest

    votes








    5 Answers
    5






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    28














    I am afraid that Gimp doesn't include it because it is tedious. It is simply not the appropriate way of aligning elements when you are designing, though I recognize that sometimes it is useful as a short-cut. Anyway, the best (correct) approach is with guides:





    A) Step 1 - Create the guides




    1. Go to Image->Guide->New Guide

    2. Specify if you want and horizontal or vertical guide

    3. Specify the number of pixels

    4. Repeat the procedure for another horizontal or vertical Guide (you can also do more guides to specify width and height)


    Alternatively, you can also create the guides dragging from the rulers:




    1. Drag down (starting from the top ruler) a guide to the Y coordinate you want.

    2. Drag down (starting from the left ruler) a guide to the X coordinate you want.


    B) Step 2 - Move the canvas



    You can use the moving tool.




    1. Select your Layer

    2. Go to Tools -> Transform Tools -> Move

    3. Drag the Layer to the guides. Gimp will give you a hand with the exact pixels.




    One of the design principle is that you should have things align in your whole project. Reducing the number of alignments (guides) helps you getting a cleaner design. I think this is why gimp does not include a tool to specify the exact coordinates. If you want to follow this design principle specifying exact coordinates one by one becomes just a tedious labour.






    share|improve this answer


























    • Exactly what I need - thanks. Use case: creating a wallpaper for dual-head setup from two other wallpapers. :)

      – smbear
      Dec 10 '13 at 11:21
















    28














    I am afraid that Gimp doesn't include it because it is tedious. It is simply not the appropriate way of aligning elements when you are designing, though I recognize that sometimes it is useful as a short-cut. Anyway, the best (correct) approach is with guides:





    A) Step 1 - Create the guides




    1. Go to Image->Guide->New Guide

    2. Specify if you want and horizontal or vertical guide

    3. Specify the number of pixels

    4. Repeat the procedure for another horizontal or vertical Guide (you can also do more guides to specify width and height)


    Alternatively, you can also create the guides dragging from the rulers:




    1. Drag down (starting from the top ruler) a guide to the Y coordinate you want.

    2. Drag down (starting from the left ruler) a guide to the X coordinate you want.


    B) Step 2 - Move the canvas



    You can use the moving tool.




    1. Select your Layer

    2. Go to Tools -> Transform Tools -> Move

    3. Drag the Layer to the guides. Gimp will give you a hand with the exact pixels.




    One of the design principle is that you should have things align in your whole project. Reducing the number of alignments (guides) helps you getting a cleaner design. I think this is why gimp does not include a tool to specify the exact coordinates. If you want to follow this design principle specifying exact coordinates one by one becomes just a tedious labour.






    share|improve this answer


























    • Exactly what I need - thanks. Use case: creating a wallpaper for dual-head setup from two other wallpapers. :)

      – smbear
      Dec 10 '13 at 11:21














    28












    28








    28







    I am afraid that Gimp doesn't include it because it is tedious. It is simply not the appropriate way of aligning elements when you are designing, though I recognize that sometimes it is useful as a short-cut. Anyway, the best (correct) approach is with guides:





    A) Step 1 - Create the guides




    1. Go to Image->Guide->New Guide

    2. Specify if you want and horizontal or vertical guide

    3. Specify the number of pixels

    4. Repeat the procedure for another horizontal or vertical Guide (you can also do more guides to specify width and height)


    Alternatively, you can also create the guides dragging from the rulers:




    1. Drag down (starting from the top ruler) a guide to the Y coordinate you want.

    2. Drag down (starting from the left ruler) a guide to the X coordinate you want.


    B) Step 2 - Move the canvas



    You can use the moving tool.




    1. Select your Layer

    2. Go to Tools -> Transform Tools -> Move

    3. Drag the Layer to the guides. Gimp will give you a hand with the exact pixels.




    One of the design principle is that you should have things align in your whole project. Reducing the number of alignments (guides) helps you getting a cleaner design. I think this is why gimp does not include a tool to specify the exact coordinates. If you want to follow this design principle specifying exact coordinates one by one becomes just a tedious labour.






    share|improve this answer















    I am afraid that Gimp doesn't include it because it is tedious. It is simply not the appropriate way of aligning elements when you are designing, though I recognize that sometimes it is useful as a short-cut. Anyway, the best (correct) approach is with guides:





    A) Step 1 - Create the guides




    1. Go to Image->Guide->New Guide

    2. Specify if you want and horizontal or vertical guide

    3. Specify the number of pixels

    4. Repeat the procedure for another horizontal or vertical Guide (you can also do more guides to specify width and height)


    Alternatively, you can also create the guides dragging from the rulers:




    1. Drag down (starting from the top ruler) a guide to the Y coordinate you want.

    2. Drag down (starting from the left ruler) a guide to the X coordinate you want.


    B) Step 2 - Move the canvas



    You can use the moving tool.




    1. Select your Layer

    2. Go to Tools -> Transform Tools -> Move

    3. Drag the Layer to the guides. Gimp will give you a hand with the exact pixels.




    One of the design principle is that you should have things align in your whole project. Reducing the number of alignments (guides) helps you getting a cleaner design. I think this is why gimp does not include a tool to specify the exact coordinates. If you want to follow this design principle specifying exact coordinates one by one becomes just a tedious labour.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 29 '15 at 17:11

























    answered May 16 '13 at 5:15









    toto_ticototo_tico

    41946




    41946













    • Exactly what I need - thanks. Use case: creating a wallpaper for dual-head setup from two other wallpapers. :)

      – smbear
      Dec 10 '13 at 11:21



















    • Exactly what I need - thanks. Use case: creating a wallpaper for dual-head setup from two other wallpapers. :)

      – smbear
      Dec 10 '13 at 11:21

















    Exactly what I need - thanks. Use case: creating a wallpaper for dual-head setup from two other wallpapers. :)

    – smbear
    Dec 10 '13 at 11:21





    Exactly what I need - thanks. Use case: creating a wallpaper for dual-head setup from two other wallpapers. :)

    – smbear
    Dec 10 '13 at 11:21













    19














    There is a script to do this that can be download from the GIMP Plugin registry. It is called:



    Move Layer To (download).



    To install:




    1. Move the script to %USERPROFILE.gimp-2.8scripts directory on Windows, ~/Library/Application Support/GIMP/2.8/scripts on OS X or ~/.gimp-2.8/scripts on Linux. (Official instructions)


    2. Clicks Filters -> Script-Fu -> Refresh scripts.


    3. The new menu item will appear at the bottom of the Layer menu Move to.







    share|improve this answer


























    • Nice first answer!

      – slm
      Jan 7 '13 at 4:21











    • Almost perfect! Would be nice if the parameter dialog used the layer's current coordinates as the default values.

      – Oliver Giesen
      Jan 25 '13 at 23:39






    • 4





      You need to download that .scm file and put it into %USERPROFILE%.gimp-2.8scripts on Windows, then do Filters->Script-Fu->Refresh Scripts and it will be available as the bottom most item Layer->Move To

      – DarkWalker
      Jan 10 '14 at 20:00








    • 2





      Davids answer does the job without a script.

      – Michael S.
      Oct 6 '15 at 8:41






    • 1





      Does NOT work for negative offset. and the UX is poor (don't keep the last value, etc).

      – Loda
      Nov 2 '15 at 15:35
















    19














    There is a script to do this that can be download from the GIMP Plugin registry. It is called:



    Move Layer To (download).



    To install:




    1. Move the script to %USERPROFILE.gimp-2.8scripts directory on Windows, ~/Library/Application Support/GIMP/2.8/scripts on OS X or ~/.gimp-2.8/scripts on Linux. (Official instructions)


    2. Clicks Filters -> Script-Fu -> Refresh scripts.


    3. The new menu item will appear at the bottom of the Layer menu Move to.







    share|improve this answer


























    • Nice first answer!

      – slm
      Jan 7 '13 at 4:21











    • Almost perfect! Would be nice if the parameter dialog used the layer's current coordinates as the default values.

      – Oliver Giesen
      Jan 25 '13 at 23:39






    • 4





      You need to download that .scm file and put it into %USERPROFILE%.gimp-2.8scripts on Windows, then do Filters->Script-Fu->Refresh Scripts and it will be available as the bottom most item Layer->Move To

      – DarkWalker
      Jan 10 '14 at 20:00








    • 2





      Davids answer does the job without a script.

      – Michael S.
      Oct 6 '15 at 8:41






    • 1





      Does NOT work for negative offset. and the UX is poor (don't keep the last value, etc).

      – Loda
      Nov 2 '15 at 15:35














    19












    19








    19







    There is a script to do this that can be download from the GIMP Plugin registry. It is called:



    Move Layer To (download).



    To install:




    1. Move the script to %USERPROFILE.gimp-2.8scripts directory on Windows, ~/Library/Application Support/GIMP/2.8/scripts on OS X or ~/.gimp-2.8/scripts on Linux. (Official instructions)


    2. Clicks Filters -> Script-Fu -> Refresh scripts.


    3. The new menu item will appear at the bottom of the Layer menu Move to.







    share|improve this answer















    There is a script to do this that can be download from the GIMP Plugin registry. It is called:



    Move Layer To (download).



    To install:




    1. Move the script to %USERPROFILE.gimp-2.8scripts directory on Windows, ~/Library/Application Support/GIMP/2.8/scripts on OS X or ~/.gimp-2.8/scripts on Linux. (Official instructions)


    2. Clicks Filters -> Script-Fu -> Refresh scripts.


    3. The new menu item will appear at the bottom of the Layer menu Move to.








    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Oct 27 '15 at 11:08









    Flimm

    4,84732132




    4,84732132










    answered Jan 7 '13 at 3:59









    garybgaryb

    19112




    19112













    • Nice first answer!

      – slm
      Jan 7 '13 at 4:21











    • Almost perfect! Would be nice if the parameter dialog used the layer's current coordinates as the default values.

      – Oliver Giesen
      Jan 25 '13 at 23:39






    • 4





      You need to download that .scm file and put it into %USERPROFILE%.gimp-2.8scripts on Windows, then do Filters->Script-Fu->Refresh Scripts and it will be available as the bottom most item Layer->Move To

      – DarkWalker
      Jan 10 '14 at 20:00








    • 2





      Davids answer does the job without a script.

      – Michael S.
      Oct 6 '15 at 8:41






    • 1





      Does NOT work for negative offset. and the UX is poor (don't keep the last value, etc).

      – Loda
      Nov 2 '15 at 15:35



















    • Nice first answer!

      – slm
      Jan 7 '13 at 4:21











    • Almost perfect! Would be nice if the parameter dialog used the layer's current coordinates as the default values.

      – Oliver Giesen
      Jan 25 '13 at 23:39






    • 4





      You need to download that .scm file and put it into %USERPROFILE%.gimp-2.8scripts on Windows, then do Filters->Script-Fu->Refresh Scripts and it will be available as the bottom most item Layer->Move To

      – DarkWalker
      Jan 10 '14 at 20:00








    • 2





      Davids answer does the job without a script.

      – Michael S.
      Oct 6 '15 at 8:41






    • 1





      Does NOT work for negative offset. and the UX is poor (don't keep the last value, etc).

      – Loda
      Nov 2 '15 at 15:35

















    Nice first answer!

    – slm
    Jan 7 '13 at 4:21





    Nice first answer!

    – slm
    Jan 7 '13 at 4:21













    Almost perfect! Would be nice if the parameter dialog used the layer's current coordinates as the default values.

    – Oliver Giesen
    Jan 25 '13 at 23:39





    Almost perfect! Would be nice if the parameter dialog used the layer's current coordinates as the default values.

    – Oliver Giesen
    Jan 25 '13 at 23:39




    4




    4





    You need to download that .scm file and put it into %USERPROFILE%.gimp-2.8scripts on Windows, then do Filters->Script-Fu->Refresh Scripts and it will be available as the bottom most item Layer->Move To

    – DarkWalker
    Jan 10 '14 at 20:00







    You need to download that .scm file and put it into %USERPROFILE%.gimp-2.8scripts on Windows, then do Filters->Script-Fu->Refresh Scripts and it will be available as the bottom most item Layer->Move To

    – DarkWalker
    Jan 10 '14 at 20:00






    2




    2





    Davids answer does the job without a script.

    – Michael S.
    Oct 6 '15 at 8:41





    Davids answer does the job without a script.

    – Michael S.
    Oct 6 '15 at 8:41




    1




    1





    Does NOT work for negative offset. and the UX is poor (don't keep the last value, etc).

    – Loda
    Nov 2 '15 at 15:35





    Does NOT work for negative offset. and the UX is poor (don't keep the last value, etc).

    – Loda
    Nov 2 '15 at 15:35











    18















    1. Pick enter image description here (alignment tool).

    2. Make it Relative to Image.

    3. Click on your layer (in the canvas).

    4. Enter X in the Offset field.

    5. Click on Distribute / enter image description here (left arrow).

    6. Enter Y in the Offset field.

    7. Click on Distribute / enter image description here (up arrow).


    That's it!






    share|improve this answer





















    • 1





      This work for negative offset.

      – Loda
      Nov 2 '15 at 15:33






    • 1





      Note that it seems that you can only select the top visible layer — that is, one has to hide layers on top of the layer to be aligned (gimp 2.8.16).

      – Skippy le Grand Gourou
      Jul 22 '16 at 19:53











    • Does this use the unit of pixels? It seems to move my image far more than I would expect.

      – palswim
      Sep 7 '16 at 22:38











    • @palswim For me it worked when I clicked the top group of buttons (Align) instead of the bottom group (Distribute). Yes, it's measured in pixels (at least in my configuration).

      – Rodrigo
      Apr 9 '17 at 14:01
















    18















    1. Pick enter image description here (alignment tool).

    2. Make it Relative to Image.

    3. Click on your layer (in the canvas).

    4. Enter X in the Offset field.

    5. Click on Distribute / enter image description here (left arrow).

    6. Enter Y in the Offset field.

    7. Click on Distribute / enter image description here (up arrow).


    That's it!






    share|improve this answer





















    • 1





      This work for negative offset.

      – Loda
      Nov 2 '15 at 15:33






    • 1





      Note that it seems that you can only select the top visible layer — that is, one has to hide layers on top of the layer to be aligned (gimp 2.8.16).

      – Skippy le Grand Gourou
      Jul 22 '16 at 19:53











    • Does this use the unit of pixels? It seems to move my image far more than I would expect.

      – palswim
      Sep 7 '16 at 22:38











    • @palswim For me it worked when I clicked the top group of buttons (Align) instead of the bottom group (Distribute). Yes, it's measured in pixels (at least in my configuration).

      – Rodrigo
      Apr 9 '17 at 14:01














    18












    18








    18








    1. Pick enter image description here (alignment tool).

    2. Make it Relative to Image.

    3. Click on your layer (in the canvas).

    4. Enter X in the Offset field.

    5. Click on Distribute / enter image description here (left arrow).

    6. Enter Y in the Offset field.

    7. Click on Distribute / enter image description here (up arrow).


    That's it!






    share|improve this answer
















    1. Pick enter image description here (alignment tool).

    2. Make it Relative to Image.

    3. Click on your layer (in the canvas).

    4. Enter X in the Offset field.

    5. Click on Distribute / enter image description here (left arrow).

    6. Enter Y in the Offset field.

    7. Click on Distribute / enter image description here (up arrow).


    That's it!







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 3 at 17:26

























    answered Jun 18 '15 at 11:19









    DavidDavid

    28124




    28124








    • 1





      This work for negative offset.

      – Loda
      Nov 2 '15 at 15:33






    • 1





      Note that it seems that you can only select the top visible layer — that is, one has to hide layers on top of the layer to be aligned (gimp 2.8.16).

      – Skippy le Grand Gourou
      Jul 22 '16 at 19:53











    • Does this use the unit of pixels? It seems to move my image far more than I would expect.

      – palswim
      Sep 7 '16 at 22:38











    • @palswim For me it worked when I clicked the top group of buttons (Align) instead of the bottom group (Distribute). Yes, it's measured in pixels (at least in my configuration).

      – Rodrigo
      Apr 9 '17 at 14:01














    • 1





      This work for negative offset.

      – Loda
      Nov 2 '15 at 15:33






    • 1





      Note that it seems that you can only select the top visible layer — that is, one has to hide layers on top of the layer to be aligned (gimp 2.8.16).

      – Skippy le Grand Gourou
      Jul 22 '16 at 19:53











    • Does this use the unit of pixels? It seems to move my image far more than I would expect.

      – palswim
      Sep 7 '16 at 22:38











    • @palswim For me it worked when I clicked the top group of buttons (Align) instead of the bottom group (Distribute). Yes, it's measured in pixels (at least in my configuration).

      – Rodrigo
      Apr 9 '17 at 14:01








    1




    1





    This work for negative offset.

    – Loda
    Nov 2 '15 at 15:33





    This work for negative offset.

    – Loda
    Nov 2 '15 at 15:33




    1




    1





    Note that it seems that you can only select the top visible layer — that is, one has to hide layers on top of the layer to be aligned (gimp 2.8.16).

    – Skippy le Grand Gourou
    Jul 22 '16 at 19:53





    Note that it seems that you can only select the top visible layer — that is, one has to hide layers on top of the layer to be aligned (gimp 2.8.16).

    – Skippy le Grand Gourou
    Jul 22 '16 at 19:53













    Does this use the unit of pixels? It seems to move my image far more than I would expect.

    – palswim
    Sep 7 '16 at 22:38





    Does this use the unit of pixels? It seems to move my image far more than I would expect.

    – palswim
    Sep 7 '16 at 22:38













    @palswim For me it worked when I clicked the top group of buttons (Align) instead of the bottom group (Distribute). Yes, it's measured in pixels (at least in my configuration).

    – Rodrigo
    Apr 9 '17 at 14:01





    @palswim For me it worked when I clicked the top group of buttons (Align) instead of the bottom group (Distribute). Yes, it's measured in pixels (at least in my configuration).

    – Rodrigo
    Apr 9 '17 at 14:01











    10














    I'm using GIMP 2.6.11.



    With these lines of Python the active layer can be moved to an absolute position, like (32, 64), from the Python console:



    >>> x_new = 32
    >>> y_new = 64
    >>> img = _[0]
    >>> layer = img.active_layer
    >>> x_off, y_off = layer.offsets
    >>> pdb.gimp_layer_translate(layer, x_new - x_off, y_new - y_off)


    Alternatively, if you only want to move the content of the layer:



    right-click,
    Layer > Transform > Offset



    or Shft+Ctrl+O






    share|improve this answer





















    • 1





      This causes the pixels within the layer to move, rather than the layer itself - I need to move the actual layer. What you suggested may work if the layer is the same size as the canvas, or at least big enough not to clip any non-transparent pixels within the layer.

      – Scott
      Jul 7 '11 at 19:55











    • @Scott: I see - sorry I didn't find an easier way, but at least I figured out how to move the layer to an absolute position with some lines of Python.

      – Nicolas Kaiser
      Jul 7 '11 at 21:32






    • 2





      Line three of you code should be img=gimp.image_list()[0]. The _ didnt work for me.

      – apple16
      Jul 23 '12 at 21:58
















    10














    I'm using GIMP 2.6.11.



    With these lines of Python the active layer can be moved to an absolute position, like (32, 64), from the Python console:



    >>> x_new = 32
    >>> y_new = 64
    >>> img = _[0]
    >>> layer = img.active_layer
    >>> x_off, y_off = layer.offsets
    >>> pdb.gimp_layer_translate(layer, x_new - x_off, y_new - y_off)


    Alternatively, if you only want to move the content of the layer:



    right-click,
    Layer > Transform > Offset



    or Shft+Ctrl+O






    share|improve this answer





















    • 1





      This causes the pixels within the layer to move, rather than the layer itself - I need to move the actual layer. What you suggested may work if the layer is the same size as the canvas, or at least big enough not to clip any non-transparent pixels within the layer.

      – Scott
      Jul 7 '11 at 19:55











    • @Scott: I see - sorry I didn't find an easier way, but at least I figured out how to move the layer to an absolute position with some lines of Python.

      – Nicolas Kaiser
      Jul 7 '11 at 21:32






    • 2





      Line three of you code should be img=gimp.image_list()[0]. The _ didnt work for me.

      – apple16
      Jul 23 '12 at 21:58














    10












    10








    10







    I'm using GIMP 2.6.11.



    With these lines of Python the active layer can be moved to an absolute position, like (32, 64), from the Python console:



    >>> x_new = 32
    >>> y_new = 64
    >>> img = _[0]
    >>> layer = img.active_layer
    >>> x_off, y_off = layer.offsets
    >>> pdb.gimp_layer_translate(layer, x_new - x_off, y_new - y_off)


    Alternatively, if you only want to move the content of the layer:



    right-click,
    Layer > Transform > Offset



    or Shft+Ctrl+O






    share|improve this answer















    I'm using GIMP 2.6.11.



    With these lines of Python the active layer can be moved to an absolute position, like (32, 64), from the Python console:



    >>> x_new = 32
    >>> y_new = 64
    >>> img = _[0]
    >>> layer = img.active_layer
    >>> x_off, y_off = layer.offsets
    >>> pdb.gimp_layer_translate(layer, x_new - x_off, y_new - y_off)


    Alternatively, if you only want to move the content of the layer:



    right-click,
    Layer > Transform > Offset



    or Shft+Ctrl+O







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 7 '11 at 21:29

























    answered Jul 7 '11 at 0:04









    Nicolas KaiserNicolas Kaiser

    5281518




    5281518








    • 1





      This causes the pixels within the layer to move, rather than the layer itself - I need to move the actual layer. What you suggested may work if the layer is the same size as the canvas, or at least big enough not to clip any non-transparent pixels within the layer.

      – Scott
      Jul 7 '11 at 19:55











    • @Scott: I see - sorry I didn't find an easier way, but at least I figured out how to move the layer to an absolute position with some lines of Python.

      – Nicolas Kaiser
      Jul 7 '11 at 21:32






    • 2





      Line three of you code should be img=gimp.image_list()[0]. The _ didnt work for me.

      – apple16
      Jul 23 '12 at 21:58














    • 1





      This causes the pixels within the layer to move, rather than the layer itself - I need to move the actual layer. What you suggested may work if the layer is the same size as the canvas, or at least big enough not to clip any non-transparent pixels within the layer.

      – Scott
      Jul 7 '11 at 19:55











    • @Scott: I see - sorry I didn't find an easier way, but at least I figured out how to move the layer to an absolute position with some lines of Python.

      – Nicolas Kaiser
      Jul 7 '11 at 21:32






    • 2





      Line three of you code should be img=gimp.image_list()[0]. The _ didnt work for me.

      – apple16
      Jul 23 '12 at 21:58








    1




    1





    This causes the pixels within the layer to move, rather than the layer itself - I need to move the actual layer. What you suggested may work if the layer is the same size as the canvas, or at least big enough not to clip any non-transparent pixels within the layer.

    – Scott
    Jul 7 '11 at 19:55





    This causes the pixels within the layer to move, rather than the layer itself - I need to move the actual layer. What you suggested may work if the layer is the same size as the canvas, or at least big enough not to clip any non-transparent pixels within the layer.

    – Scott
    Jul 7 '11 at 19:55













    @Scott: I see - sorry I didn't find an easier way, but at least I figured out how to move the layer to an absolute position with some lines of Python.

    – Nicolas Kaiser
    Jul 7 '11 at 21:32





    @Scott: I see - sorry I didn't find an easier way, but at least I figured out how to move the layer to an absolute position with some lines of Python.

    – Nicolas Kaiser
    Jul 7 '11 at 21:32




    2




    2





    Line three of you code should be img=gimp.image_list()[0]. The _ didnt work for me.

    – apple16
    Jul 23 '12 at 21:58





    Line three of you code should be img=gimp.image_list()[0]. The _ didnt work for me.

    – apple16
    Jul 23 '12 at 21:58











    0














    There's a very convenient way to do this available since the Gimp v.2.10:




    1. double click on the layer you want to move (or right click on it
      and select "Edit Layer Attributes")


    2. the "Edit Layer Attributes" dialog will show up and there you can
      change the X/Y offsets to your needs



    Simply easy like that! :)



    Edit Layer X/Y Offsets Attributes






    share|improve this answer




























      0














      There's a very convenient way to do this available since the Gimp v.2.10:




      1. double click on the layer you want to move (or right click on it
        and select "Edit Layer Attributes")


      2. the "Edit Layer Attributes" dialog will show up and there you can
        change the X/Y offsets to your needs



      Simply easy like that! :)



      Edit Layer X/Y Offsets Attributes






      share|improve this answer


























        0












        0








        0







        There's a very convenient way to do this available since the Gimp v.2.10:




        1. double click on the layer you want to move (or right click on it
          and select "Edit Layer Attributes")


        2. the "Edit Layer Attributes" dialog will show up and there you can
          change the X/Y offsets to your needs



        Simply easy like that! :)



        Edit Layer X/Y Offsets Attributes






        share|improve this answer













        There's a very convenient way to do this available since the Gimp v.2.10:




        1. double click on the layer you want to move (or right click on it
          and select "Edit Layer Attributes")


        2. the "Edit Layer Attributes" dialog will show up and there you can
          change the X/Y offsets to your needs



        Simply easy like that! :)



        Edit Layer X/Y Offsets Attributes







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        danicotradanicotra

        1,1092621




        1,1092621






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f307368%2fmove-a-layer-to-specific-x-y-position-in-gimp%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

            looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...