Flip an Image - testmy.net resource / tool
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Home
Download Test
Test Your Download Speed
Test Download AND Upload
Upload Test
Test Your Upload Speed
Test Upload AND Download
Community Forum
Community Forum Home
» Log-In
» Register
Internal Search
Google Powered Search
Computer & Net Guides
ISP Discussion
Forum Sitemap
Member List
Forum Stats
Forum Help and Info
Calendar & Birthdays
Database Stats
Host Stats
Member Stats
Share Score
Misc Tools
Conversion Calc.
Speed Chart
Conversion Table
Create a Test
Share Score
Automatic Test
Forum Archive
RSS and Blog Feeds
Score Database
trace/ping/whois/DNS
Wallpapers
Tweak Guide
!! Forum Search !!
!! Google Search !!
TMN Detailed Sitemap
News
News Home
Join
Theme
See Theme List
America the Beautiful
Blacken
Dark Blood Red
Blue
Blue Black Box
Blue Gray
Brown
Christmas
Dark Blue
ekaf
GL Series (default)
Gray Shades
Original Feel
Green
Greenhouse
Greenhouse Gray
Halloween Theme
Orange
Purple Darkness
Red/pink
Red 'n Black
TurkeyDay!
» Neuron (Default)
Neuron Black
Rise (New!)
Click to read why...
News
:
Don't look stupid, make sure you keep up-to-date with our rules,
please read rules, click here
September 07, 2008, 02:26:29 PM
testmy.net Broadband
|
Main Forum
|
HELP!
|
Programming and Website Help
| Topic:
Flip an Image
0 Members and 1 Guest are viewing this topic.
« previous
next »
Topic Tools
Search this topic
Pages
1
2
All
Author
Topic: Flip an Image (Read 5641 times)
dlewis23
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 9608
HEY! ill put it down when im good and ready.
Flip an Image
«
on:
September 19, 2006, 02:44:29 PM »
Im looking for some code that will flip an image virtucaly. ive looked all over and have found nothing.
i am trying to do something like the attached picture
Logged
Aggr3
Global Moderator
Expert
Online
Gender:
Posts: 1290
I'm a victim of my own making...
Re: Flip an Image
«
Reply #1 on:
September 19, 2006, 02:59:35 PM »
try mirror image....then rotate 180 degrees..
;)
Logged
Thank God for Dway.....without them I wouldn't have Gray hair, High Blood pressure, or Califlower ear.......
DW6000 satmex5 1230MHz SS86
dlewis23
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 9608
HEY! ill put it down when im good and ready.
Re: Flip an Image
«
Reply #2 on:
September 19, 2006, 03:06:42 PM »
Quote from: Aggr3 on September 19, 2006, 02:59:35 PM
try mirror image....then rotate 180 degrees..
;)
even that way im still stuck because i still need code that will rotate a image. Im not just doing this for 1 image its for 1000's so i need it to do it dynamically with just code.
Logged
tommie gorman
Sophist Member
TMN Seasoned Veteran
Offline
Gender:
Posts: 9775
"OLD GLORY"
Re: Flip an Image
«
Reply #3 on:
September 19, 2006, 05:51:05 PM »
Just turn the monitor upside down. ;)
Logged
IF YOU DON'T STAND BEHIND OUR TROOPS, PLEASE, FEEL FREE TO STAND IN FRONT OF THEM !!!
"an old country hick from america"
Sprint EVDO Rev. A * AMD 64 3500+ 2.2 GHz cpu Ram 2GB/XP Home * TCP Optimizer
Aggr3
Global Moderator
Expert
Online
Gender:
Posts: 1290
I'm a victim of my own making...
Re: Flip an Image
«
Reply #4 on:
September 19, 2006, 05:53:54 PM »
try this.....
sorry couldn't resist....lol
Logged
Thank God for Dway.....without them I wouldn't have Gray hair, High Blood pressure, or Califlower ear.......
DW6000 satmex5 1230MHz SS86
dlewis23
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 9608
HEY! ill put it down when im good and ready.
Re: Flip an Image
«
Reply #5 on:
September 19, 2006, 06:09:10 PM »
Quote from: tommie gorman on September 19, 2006, 05:51:05 PM
Just turn the monitor upside down. ;)
i dont think that will work
Logged
waterRTBH
TMN's Social Conscience
Global Moderator
TMN Veteran
Offline
Gender:
Posts: 1992
I'm not a shoulder to cry on, but I digress
Re: Flip an Image
«
Reply #6 on:
September 19, 2006, 06:21:14 PM »
Quote from: dlewis23 on September 19, 2006, 06:09:10 PM
i dont think that will work
What kind of code do you wish to do this with? It may be possible with php and the gd library. Also, Photoshop has a 'batch' command that could be used to automate this as well if you wants an easier way out?
Yes? no?
Logged
To lead people, walk beside them... As for the best leaders, the people do not notice their existence. The next best, the people honor and praise. The next, the people fear; and the next, the people hate... When the best leader's work is done the people say, 'We did it ourselves!' ~Lao Tzu
dlewis23
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 9608
HEY! ill put it down when im good and ready.
Re: Flip an Image
«
Reply #7 on:
September 19, 2006, 06:24:47 PM »
Quote from: waterRTBH on September 19, 2006, 06:21:14 PM
What kind of code do you wish to do this with? It may be possible with php and the gd library. Also, Photoshop has a 'batch' command that could be used to automate this as well if you wants an easier way out?
Yes? no?
no it has to be done server side, when the user requests the file, this is for all the users files that are uploaded now, and in the future.
Logged
waterRTBH
TMN's Social Conscience
Global Moderator
TMN Veteran
Offline
Gender:
Posts: 1992
I'm not a shoulder to cry on, but I digress
Re: Flip an Image
«
Reply #8 on:
September 20, 2006, 04:45:59 AM »
OK
This is in PHP:
// File and rotation
$filename = 'test.jpg';
$degrees = 180;
// Content type
header('Content-type: image/jpeg');
// Load
$source = imagecreatefromjpeg($filename);
// Rotate
$rotate = imagerotate($source, $degrees, 0);
// Output
imagejpeg($rotate);
Good luck, hope it works.
Logged
To lead people, walk beside them... As for the best leaders, the people do not notice their existence. The next best, the people honor and praise. The next, the people fear; and the next, the people hate... When the best leader's work is done the people say, 'We did it ourselves!' ~Lao Tzu
dlewis23
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 9608
HEY! ill put it down when im good and ready.
Re: Flip an Image
«
Reply #9 on:
September 20, 2006, 07:33:51 AM »
that didnt work water, im just going to have to write it out my self in some javascript. thanks for your help tho.
Logged
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2097
I am and always will be disturbed.
Re: Flip an Image
«
Reply #10 on:
September 20, 2006, 08:25:15 AM »
http://cow.neondragon.net/stuff/reflection/
This site has everything you need for this particular function - its a java script
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
dlewis23
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 9608
HEY! ill put it down when im good and ready.
Re: Flip an Image
«
Reply #11 on:
September 20, 2006, 08:27:14 AM »
Quote from: disturbed on September 20, 2006, 08:25:15 AM
http://cow.neondragon.net/stuff/reflection/
This site has everything you need for this particular function - its a java script
thank you so much, thats exactly what i want.
Logged
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2097
I am and always will be disturbed.
Re: Flip an Image
«
Reply #12 on:
September 20, 2006, 08:29:58 AM »
u got it ;)
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
waterRTBH
TMN's Social Conscience
Global Moderator
TMN Veteran
Offline
Gender:
Posts: 1992
I'm not a shoulder to cry on, but I digress
Re: Flip an Image
«
Reply #13 on:
September 20, 2006, 04:56:20 PM »
Javascript will work for client end image flipping; however, if you want to have this take place at the server end you'll need to use some form of cgi, such as perl or php. The code posted above definitely will work for this purpose, as long as your server host allows you to use php and supports the standard GD library (this is pretty standard, so they should). As a proof of concept, I setup a test script with the following code:
You can see the before picture at:
http://www.secondshifters.com/images/WaterRTBH.jpg
and the after picture at
http://www.secondshifters.com/test.php
If you'd like to post or email the code in that you're using for your site, I should be able to integrate this in relatively easily for you if you still want a server end solution to this.
Logged
To lead people, walk beside them... As for the best leaders, the people do not notice their existence. The next best, the people honor and praise. The next, the people fear; and the next, the people hate... When the best leader's work is done the people say, 'We did it ourselves!' ~Lao Tzu
waterRTBH
TMN's Social Conscience
Global Moderator
TMN Veteran
Offline
Gender:
Posts: 1992
I'm not a shoulder to cry on, but I digress
Re: Flip an Image
«
Reply #14 on:
September 20, 2006, 05:00:44 PM »
Whooops! Forgot the code. dangit!
<?php
// File and rotation
$filename = 'images/WaterRTBH.jpg';
$degrees = 180;
// Content type
header('Content-type: image/jpeg');
// Load
$source = imagecreatefromjpeg($filename);
// Rotate
$rotate = imagerotate($source, $degrees, 0);
// Output
imagejpeg($rotate);
?>
Logged
To lead people, walk beside them... As for the best leaders, the people do not notice their existence. The next best, the people honor and praise. The next, the people fear; and the next, the people hate... When the best leader's work is done the people say, 'We did it ourselves!' ~Lao Tzu
Pages
1
2
All
testmy.net Broadband
|
Main Forum
|
HELP!
|
Programming and Website Help
| Topic:
Flip an Image
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Main Forum
-----------------------------
=> General Discussion
=> New Members
=> PC Security
===> Antivirus & Firewalls
===> Spyware & Malware
===> Viruses & Scams
===> Security Threats
=> Show off your scores!
=> Make it Faster...
=> HELP!
===> HELP! With Other Stuff
===> HELP! With Tests
===> HELP! With Forum
===> Programming and Website Help
=====> HTML
=====> PHP
=====> PERL
=====> Server Help
===> Networking and Hardware
===> Overclocking
===> Linux Help
=> News
===> testmy.net News and Updates
=> Online Gaming Discussion
===> Requests
===> America's Army
===> Battlefield
===> Call Of Duty 4
===> Counter-Strike 1.6
===> Counter-Strike : Source
===> Day of Defeat : Source
===> Diablo
===> F.E.A.R
===> Ghost Recon
===> Halo 2
===> Lineage 2
===> Quake
===> Rainbow Six 3
===> World of Warcraft
===> Tribes 2
===> Unreal Tournament
=> Graphics, Sigs and Pictures
===> Test Board
=> Guides
=> Got any ideas to make testmy.net better?
=> Off Topic Discussion
-----------------------------
Provider Discussion and Reviews
-----------------------------
=> Add a Provider
=> All Dial-up
=> North American Providers (Including Canada)
===> Canadian Providers
=====> teksavvy.com Canada
=====> xplornet.com Canada
=====> Persona Internet
=====> Rogers Communications
=====> Shaw Communications
=====> Sympatico (Bell Canada)
===> Adelphia Communications
===> ALLTEL Communications
===> AOL
===> AT&T
=====> SBC Global
=====> BellSouth
===> Cable One
===> Cavalier Telephone cavtel.net
===> cebridge.net
===> CenturyTel
===> Charter Communications
===> Clearwire
===> Comcast Cable Communications
===> Country Cablevision
===> Covad communications
===> Cox Communications
===> DMAX Puerto Rico
===> EarthLink
===> EMBARQ
===> Frontier Online
===> HughesNet (DIRECWAY)
=====> DW4000 Information
=====> DW6000 Information
=====> DW7000 Information
===> Insight Broadband
===> Mediacom Communications
===> Midcontinent Communications
===> mycingular.net
===> Namesco/NDO (ndo.com)
===> onelinkpr.net Puerto Rico
===> Optimum Online
===> Qwest Communications
===> RCN
===> RoadRunner (Time Warner Cable)
===> seidata.com
===> sigecom.net
===> SkyWay USA
===> Speakeasy
===> Sprint Nextel Corporation
===> Starband
===> Suddenlink
===> SureWest Communications
=====> SureWest Communications FIOS
===> SusCom - Susquehanna Communications
===> TDS - Telephone and Data Systems, Inc
===> Transedge.com
===> Verizon Online
===> Verizon Online FIOS
===> Wave Broadband
===> Wide Open West
===> Wildblue Communications, Inc
=> World Providers (Non-North American)
===> African Providers
===> Asian and Middle Eastern Providers
=====> Asian Providers
=====> Centennial
=====> Digitel
=====> PLDT myDSL
=====> Sify Broadband
=====> Streamyx
=====> Smart Bro (Wi-fi)
===> Australian Providers
=====> Digiplus
=====> Optusnet
=====> Telstra Bigpond
===> UK and European Providers
=====> Bredbandsbolaget
=======> Bredbandsbolaget Fiber
=======> Bredbandsbolaget ADSL, VDSL
=====> Virgin.net (old NTL)
=====> Tiscali
===> Central/South American Providers
-----------------------------
Miscellaneous
-----------------------------
=> Archives
===> Announcements
=> Public Polls
===> Not on index
Print
Advanced search
Loading...
testmy.net's forum is proudly
Powered by SMF
|
SMF © 2006-2007, Simple Machines LLC
© 1999-2008 testmy.net -
Contact
-
Legal
-
Facts & FAQs
Page Loading Stats: This forum Page created in 0.12 seconds with 53 queries.