Skew one side of image. MtPaint? SOLVED

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Skew one side of image. MtPaint? SOLVED

Post by greengeek »

I have a desktop wallpaper that has an irritating sloping line as part of it's image.
Here is that image:

OrigWallpaper.jpg
OrigWallpaper.jpg (48.25 KiB) Viewed 2327 times

This line is not vertical and sits right where the normal puppy icons are and I would really like to be able to skew the left side of my image to make this line vertical so it does not detract from the column of icons. (Then I would backfill the gap with grey or similar)

I tried mtpaint for this and was able to skew the left edge by 4 degrees and i am pretty happy with the result as follows:

SkewedWallpaper.png
SkewedWallpaper.png (499.88 KiB) Viewed 2325 times

However - you can see that the right side of the image is now skewed also.

Does anyone know if mtpaint (or any other program) has the ability to skew just one edge?

Thanks!

Last edited by greengeek on Sat Jul 15, 2023 8:59 pm, edited 1 time in total.
User avatar
pp4mnklinux
Posts: 1126
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 633 times
Been thanked: 281 times
Contact:

Re: Skew one side of image. MtPaint?

Post by pp4mnklinux »

Hi @greengeek :

As you know, MTPAINT is a very, very simple editor, so I think you can't do this, but dont worry because it is not impossible but you must use another program.

One of this programs is Adobe Photoshop, which offers a "Perspective Warp" tool that allows you to manipulate the perspective and skew different parts of an image independently.

But I recomend to u use The Gimp, free and without problems when it is used in Puppy.

You open the image you want to work with and select the layer you want to apply the perspective warp to.
If you only have one layer, it will be selected by default, then you must go to the "Tools" menu and choose "Transform Tools." And then select "Perspective Warp" from the submenu.

A grid will appear over your image, with several control points on the corners and sides and with these control points you can manipulate the perspective of the image.

Hope it helps.

Last edited by pp4mnklinux on Sat Jul 15, 2023 3:23 am, edited 2 times in total.
Burunduk
Posts: 251
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 127 times

Re: Skew one side of image. MtPaint?

Post by Burunduk »

If you have gimp installed, you can try the perspective tool.

GIMP Menu -> Tools -> Transform Tools -> Perspective:
drag the top left corner to the left until the line is straight. It'll slightly distort the whole image but not too much.

OrigWallpaper2.jpg
OrigWallpaper2.jpg (50.93 KiB) Viewed 2314 times

That thing in the middle needs a cleaning.

User avatar
MochiMoppel
Posts: 1233
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

Re: Skew one side of image. MtPaint?

Post by MochiMoppel »

You could use an online tool, e.g. https://pixlr.com/e/
Menu Edit => Free distortion

one-sided-skew.jpg
one-sided-skew.jpg (46.53 KiB) Viewed 2301 times
User avatar
rockedge
Site Admin
Posts: 6540
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2748 times
Been thanked: 2620 times
Contact:

Re: Skew one side of image. MtPaint?

Post by rockedge »

Cut the image in half, skew the left piece and reattach to the right piece..... might be something that would work....

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint?

Post by greengeek »

rockedge wrote: Sat Jul 15, 2023 5:06 am

Cut the image in half, skew the left piece and reattach to the right piece..... might be something that would work....

Thanks. Just gave this idea a try but there are too many straight lines throughout the centre of the image for this to work. End up with conflicting angles when I stitch the two halves back together.
Tried a horizontal split too but just couldnt get a proper join.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint?

Post by greengeek »

MochiMoppel wrote: Sat Jul 15, 2023 3:44 am

You could use an online tool, e.g. https://pixlr.com/e/
Menu Edit => Free distortionone-sided-skew.jpg

Thanks that is a very useful site. Good to know about.
Was easy to skew one side - and then I managed to fill the gaps with mtpaint.
Cheers!

pixlr_distort.jpg
pixlr_distort.jpg (61.53 KiB) Viewed 2258 times
User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint?

Post by greengeek »

pp4mnklinux wrote: Sat Jul 15, 2023 3:14 am

But I recomend to u use The Gimp, free and without problems when it is used in Puppy.
You open the image you want to work with and select the layer you want to apply the perspective warp to.
If you only have one layer, it will be selected by default, then you must go to the "Tools" menu and choose "Transform Tools." And then select "Perspective Warp" from the submenu.
A grid will appear over your image, with several control points on the corners and sides and with these control points you can manipulate the perspective of the image.
Hope it helps.

Burunduk wrote: Sat Jul 15, 2023 3:19 am

If you have gimp installed, you can try the perspective tool.
GIMP Menu -> Tools -> Transform Tools -> Perspective:
drag the top left corner to the left until the line is straight. It'll slightly distort the whole image but not too much.

That thing in the middle needs a cleaning.

Haha yes - I think it is supposed to be some sort of futuristic organic spacedome life support system. Perhaps an example of our future cities...

Thank you both for the GIMP suggestion. Will have to look for a 64bit version and give it a whirl.
Thx!

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint?

Post by greengeek »

Not perfect but better than it was originally...
Before:

before.jpg
before.jpg (25.7 KiB) Viewed 2250 times

After:

after.jpg
after.jpg (21.52 KiB) Viewed 2250 times
proebler
Posts: 87
Joined: Sun Aug 23, 2020 6:48 am
Location: AU-TAS
Been thanked: 23 times

Re: Skew one side of image. MtPaint?

Post by proebler »

hi greengeek,
there is a simple way in MtPaint itself to make the annoying line 'disappear':
use the 'Smudge' tool to blot it away.
It should be easy to do that with your picture.
cheers

User avatar
p310don
Posts: 356
Joined: Tue Dec 03, 2019 7:17 am
Location: Brisbane, Australia
Has thanked: 72 times
Been thanked: 103 times

Re: Skew one side of image. MtPaint?

Post by p310don »

Opened the original from here:

https://upload.wikimedia.org/wikipedia/ ... inment.jpg

in GIMP. The original is reverse to your image, so flipped it 180 degrees, then skewed the top left corner outward until the offending item looked vertical.

Nuclear_containment3.jpg
Nuclear_containment3.jpg (153.69 KiB) Viewed 2298 times
User avatar
mikeslr
Posts: 2961
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 914 times

Re: Skew one side of image. MtPaint?

Post by mikeslr »

Hi greengeek, I don't recall which Puppy you are running. If 64-bit, Mikewalsh's portable gimp works fine, https://forum.puppylinux.com/viewtopic. ... 465#p32465. If 32bit, shinobar's slightly older gimp-portable can be used, https://oldforum.puppylinux.com/viewtop ... 426#464426, Both don't waste RAM: when not in use the only RAM they use are that necessary to create menu-entries.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint?

Post by greengeek »

mikeslr wrote: Sat Jul 15, 2023 4:11 pm

Hi greengeek, I don't recall which Puppy you are running. If 64-bit, Mikewalsh's portable gimp works fine, https://forum.puppylinux.com/viewtopic. ... 465#p32465. If 32bit, shinobar's slightly older gimp-portable can be used, https://oldforum.puppylinux.com/viewtop ... 426#464426, Both don't waste RAM: when not in use the only RAM they use are that necessary to create menu-entries.

Thanks Mike. I am using Oxsouth's FossaBasic64 so am trying to download the portable from the link you provided. Will give that version a try.

EDIT: Seemed to have errors with the download initially but was successful in the end.
And yes - this version works perfectly on FossaBasic64.
Thank you to both Mikes!

Last edited by greengeek on Sat Jul 15, 2023 8:52 pm, edited 1 time in total.
User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint?

Post by greengeek »

p310don wrote: Sat Jul 15, 2023 2:37 pm

Opened the original from here:
https://upload.wikimedia.org/wikipedia/ ... inment.jpg
in GIMP. The original is reverse to your image, so flipped it 180 degrees, then skewed the top left corner outward until the offending item looked vertical.

Excellent - looks very good.
(I had flipped it horizontally to make more room for the Puppy icons at the left hand side...)
Incidentally - how did you manage to identify and locate the original??

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint?

Post by greengeek »

Would still love to be able to do a similar "single side skew" from mtpaint one day but for now I will mark this as solved.

Thank you for all the replies. Looks like a win for the Gimp and for https://pixlr.com/e/

User avatar
p310don
Posts: 356
Joined: Tue Dec 03, 2019 7:17 am
Location: Brisbane, Australia
Has thanked: 72 times
Been thanked: 103 times

Re: Skew one side of image. MtPaint? SOLVED

Post by p310don »

greengeek wrote

Incidentally - how did you manage to identify and locate the original??

I used reverse image search. First time I've actually had success with it!

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint? SOLVED

Post by greengeek »

p310don wrote: Sun Jul 16, 2023 3:15 am

I used reverse image search. First time I've actually had success with it!

Keen to know how this is done. Any tips please? :thumbup:

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint?

Post by greengeek »

rockedge wrote: Sat Jul 15, 2023 5:06 am

Cut the image in half, skew the left piece and reattach to the right piece..... might be something that would work....

I can't get past the thought that this concept should be doable.
But thinking that "halving" the image is not the right way.
If I can crop off the left hand side and reverse it or skew it slightly- then reglue to the remainder of the RHS - it may be possible to fudge it into place.
Still working on this.

LHS2.png
LHS2.png (69.32 KiB) Viewed 2220 times
Last edited by greengeek on Sun Jul 16, 2023 7:33 am, edited 2 times in total.
User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint? SOLVED

Post by greengeek »

There is probably a way to change the "red" background into a "transparent background. If so that would let me blend them more easily.

User avatar
rockedge
Site Admin
Posts: 6540
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2748 times
Been thanked: 2620 times
Contact:

Re: Skew one side of image. MtPaint? SOLVED

Post by rockedge »

I have a copy of the image and will try with the method using a sliver of the image.

I will try it with Photofiltre 7 or studio X

User avatar
rockedge
Site Admin
Posts: 6540
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2748 times
Been thanked: 2620 times
Contact:

Re: Skew one side of image. MtPaint? SOLVED

Post by rockedge »

I tried quickly with Photofiltre Studio X running in WINE on F96-CE_4

Two stages, first selected the vertical line and used Free Transform to skew the selected sliver vertically. The program preserves the original background via transparency. Then found that the horizontal lines below no longer lined up.

Stage 2 I selected the area of the horizontal lines and used Distort to pull the lines back in alignment. result is this:

Nuclear_containment-2-mod1.jpg
Nuclear_containment-2-mod1.jpg (47.01 KiB) Viewed 2215 times

But the top red arrow shows that this line is no longer in position. I can address this as well plus make the original line more precisely vertical. Bottom 2 arrows show the horizontal lines that with the Distort tool I was able to line up again.

Screenshot(28).jpg
Screenshot(28).jpg (83.34 KiB) Viewed 2209 times
User avatar
rockedge
Site Admin
Posts: 6540
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2748 times
Been thanked: 2620 times
Contact:

Re: Skew one side of image. MtPaint? SOLVED

Post by rockedge »

better vertical positioning with less distortion of the horizontal lines

Screenshot(29).jpg
Screenshot(29).jpg (85.22 KiB) Viewed 2207 times

With a test on the desktop.....

Screenshot(30).jpg
Screenshot(30).jpg (92.72 KiB) Viewed 2207 times
User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Skew one side of image. MtPaint? SOLVED

Post by greengeek »

rockedge wrote: Sun Jul 16, 2023 4:25 pm

With a test on the desktop.....

Do you still have that final image on hand by any chance? Keen to use that instead of my previous attempts.

User avatar
Sofiya
Posts: 2279
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1523 times

Re: Skew one side of image. MtPaint? SOLVED

Post by Sofiya »

:)

Attachments
1.jpg.tar.gz
(427.1 KiB) Downloaded 123 times
1.jpg
1.jpg (171.76 KiB) Viewed 2157 times

KL
PUPPY LINUX Simple fast free

User avatar
Sofiya
Posts: 2279
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1523 times

Re: Skew one side of image. MtPaint? SOLVED

Post by Sofiya »

:)

Attachments
2.jpg.tar.gz
(147.77 KiB) Downloaded 138 times
2.jpg
2.jpg (110.88 KiB) Viewed 2155 times

KL
PUPPY LINUX Simple fast free

User avatar
rockedge
Site Admin
Posts: 6540
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2748 times
Been thanked: 2620 times
Contact:

Re: Skew one side of image. MtPaint? SOLVED

Post by rockedge »

Absolutely you can have a copy :thumbup2:

That version I modified is at https://rockedge.org/kernels under Backgrounds->Collection-3
or direct :
Nuclear_containment-2-mod2.jpg
and a bonus:
NIRCam-3-Carina-Nebula.jpg.pc-adaptive.1920.jpeg

@Sofiya your version is the best! Good idea to fade the line.....skillfully done to make it disappear :ugeek:

User avatar
Sofiya
Posts: 2279
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1523 times

Re: Skew one side of image. MtPaint? SOLVED

Post by Sofiya »

keeping original image size 4096x2560xRGBx1.8mib

https://drive.google.com/file/d/1AswfI7 ... sp=sharing

Attachments
Screenshot.jpg
Screenshot.jpg (137.13 KiB) Viewed 2141 times
3.jpg
3.jpg (161.32 KiB) Viewed 2144 times

KL
PUPPY LINUX Simple fast free

Post Reply

Return to “Users”