It is currently Tue Jul 23, 2024 9:12 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: rotating image 45 degrees without modifying image
PostPosted: Fri Jan 28, 2011 5:12 pm  (#21) 
Offline
GimpChat Member

Joined: Dec 30, 2010
Posts: 17
RobA wrote:
OK - Looking at your example,I think you want this:
filter slide (image in)
in(xy:[x,(y-x-1+Y)%Y])
end

Attachment:
shear.png


-Rob A>


This image has interpolation on the middle part I think. The image I am looking for is a diamond shape I think because it is a square rotated 45 degrees. do you know how to modify this mathmap script so there is no cropping? thanks

filter slide (image in)

if y>=x then

in(xy:[x,y-x-1])

end

end


Top
 Post subject: Re: rotating image 45 degrees without modifying image
PostPosted: Fri Jan 28, 2011 11:31 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14728
Location: USA
Have you tried Image/Canvas Size
Then just make the canvas taller and wider.

Run your filter again.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: rotating image 45 degrees without modifying image
PostPosted: Sat Jan 29, 2011 12:18 am  (#23) 
Offline
GimpChat Member

Joined: Dec 30, 2010
Posts: 17
Rod wrote:
Have you tried Image/Canvas Size
Then just make the canvas taller and wider.

Run your filter again.


yes I have tried that, it cuts out half the image still

But I have tested it and that mathmap script does not modify the image at all. So does someone know to change it so it doesn't crop the image and keeps then entire diamond shape?


Top
 Post subject: Re: rotating image 45 degrees without modifying image
PostPosted: Sat Jan 29, 2011 12:42 pm  (#24) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Quote:
Have you tried Image/Canvas Size
Then just make the canvas taller and wider.

Run your filter again.
yes I have tried that, it cuts out half the image still


it still cut the image because the most relevant step is missed

As i suggested before

enlarge the canvas of 1.5,
then don't miss this, Image/layer to image size

it is the most important step, that will add the space needed to avoid cropping

About modify the MM i am sorry i can't help if not with the link i already give, that of the Google mathmap group

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: rotating image 45 degrees without modifying image
PostPosted: Sat Jan 29, 2011 1:12 pm  (#25) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
interbloke wrote:
RobA wrote:
This image has interpolation on the middle part I think. The image I am looking for is a diamond shape I think because it is a square rotated 45 degrees. do you know how to modify this mathmap script so there is no cropping? thanks

filter slide (image in)

if y>=x then

in(xy:[x,y-x-1])

end

end


Sorry interbloke, but I don't think you understand what you are asking for. As stated a few times by a few people, what you are asking for (to take the image you posted and rotate it with NO bluring/interpolation, etc) is not possible. Period.

The shearing I posted based on a modified version of your code "fakes" it my shifting each column of pixels up by one pixel but is NOT a rotation, it is a shear. There is certainly no interpolation at all.

If you want a diamond shape with those offset pixel lines, take your original image and tile it 4 times, run the mm code I provided, then select and crop out a diamond from the middle of it:
Attachment:
diamond.png
diamond.png [ 73.84 KiB | Viewed 2501 times ]


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: How to turn the image in Inkscape
PostPosted: Sat Jan 29, 2011 2:11 pm  (#26) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Ah. Ya ninja'd me on that one RobA but going to post my work anyway.

Open your image in Inkscape. (Actually I opened Inkscape and dragged and dropped the image into it.) Click the image so that it has black arrows around it.

Image

File > Document Properties > Fit page to selection

Close that window where the X is in the dark gray header bar. (Red arrow pointing to it.)

Image

Black selection arrows still visible.

Object > Transform > Rotate > 45°, click apply and again click the X in the dark gray bar.

Black selection arrows still there.

Back to File > Document Properties and Fit page to selection.

Inkscape can now export your image as a png file.

File > Export Bitmap

Browse to where you want to save it. You will need to give it a name and a png extension.

Click Export. Close that dialog with the X.

Close Inkscape. It will want to know if you want to save it. If you want to save it in Inkscape's native format as an svg vector image you may, or just close it without saving.

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Retexture an image with another image as "Image Pattern" Plug-in

4

No new posts Show image on web browser to fill 100% width AND image map

2

No new posts Attachment(s) image name

2

No new posts Attachment(s) Image to bit map file

7

No new posts Attachment(s) Image Logo

3



* Login  



Powered by phpBB3 © phpBB Group