JPeg as Base 64?

Discussion in 'General Chat' started by Dancook, Nov 29, 2010.

  1. Dancook

    Dancook
    Distinguished Member

    Joined:
    Feb 15, 2007
    Messages:
    15,278
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Ratings:
    +6,020
    So if I do a 'copy URL' on the Google thumbnails from their image search I get something like this

    Code:
    data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBhQQDxQUEBQUFBQVFhAUFBgXGBQYFxAPGRUWFRYWFRUXHCceFxkvHBcWJC8sIycpOCwsFh8xNTAqNTI3LikBCQoKDgwOGg8PGiwkHyUyLDU1LDQvKSw0LywsLjUvMjUpKSwsLCkpKiwvKjAsLDQpLCwsKSouLCwsKSwsKSkpKf/AABEIAGUAhwMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAAAAQMEBQYCB//EAEIQAAIBAwICBwUEBggHAAAAAAECAwAEERIhBTEGEyJBUWFxIzJCgZEHcoKhFCRSYrLCFUNjg5KiscElMzRTc5Pw/8QAGQEAAwEBAQAAAAAAAAAAAAAAAAIDAQQF/8QALREAAgIBAQYEBgMBAAAAAAAAAAECEQMSITFBUWHwE4GxwQQiI3GR0TKh8UL/2gAMAwEAAhEDEQA/APD8UUtJWGBSV0K7VaAOEG9dS04EpuXnWGDdLSUVowtFFFBgUUUUAFFFFABRRRQAUUoooAKKKWgBK7Diua5NAEhWzTMnOu4uVNtWIxCUlLRWjBRRRQYFFFdRxliAoJJIAA3JJ2AA7zQBzRTlzAY3ZGxlSVODkBhsRnv3pugApaKKAFFFAooAKMUKKXFYAlIa60mgRmtA7TlTJqSIjiuRaGltC2hiipQsTXS2NZrQakQ6XyH/AMam/oQrTdD+joFwlxMPYwxveN+8kbsqKfvSJjzANLLLGKszWjK8VsDBPJETkxuyH7ynDD6gj5VpuH2A4fYi8l/6icMlmvfEmMPckeIB7PgWDeGJPRDor/SN6XnPsgxmuGO2cksVz4k5+QJqP004yL68aRdolxHCvILCvI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LJIALYydHhtUr7UrBJVtLkYZBIiMRyaKTkfTP8VSuj3R6MwwpGxUW007cgTJIpliIJ2/aJz5CrxyJYk1v2/nujo1SmljiQ+kAFrZTMq5DyIzAcznQu55k9kGlq6uYstChJTJZ2IIBCLGRzPLtOlJUsGaEY/Om2c8Wq+YwvE7U3nGWjcgKmthtk6Y5S2nn3kn0z31tbyINHBEwykpm1jxUuFI+jkfKiiqzf1IroUkklFme6ZcWaCznZRvNdyxt/40GnA9ViA9Ca0XCOjMVqwkj21wIGHcXBGXO/M7em/jRRUMzccari37Gx/g/MY4bNjjTEjOLTA9C8rH+BfpT3SPjclvDdyRYDwxxMhxnDtjtY5bbYHlS0VWrcF9vVBH+Ee+JK4PKTa2xY5aRI2Y4xlmTrGOPHJP1zXN0xAwpwdMSA969dKIyw8wF2paK457/P3Iz2yZJRAJo0AAVVyoHdpAVR6YNMXfGBHe9RoyZFVg+QNICttjTv7p7xzoopvhkpTlfJlcLa1V1G+k94beBmjH/JtrqRPJ/ZxqfkGb61A6Kcba5sy06odDrGFUFR1SiJ4xzJypIwST7tFFVivpX1RuppUuaOumEWLaSPO0ksMBP7jzRxt+RP1qyawGsqSdM0jO4/s40ijEX3TzOMZyR3miio6nGDrr7C4vlUq72jXSayEnCpkPwpIVOORRiy/wCgqn+zu8Z7RZD7zTXBP4pDmloq2Lbid8zLadondIuHC5uWgZmRWtlfKnBBaZGIB/ul+tFFFZ4s8eyLpHu4MONxtrmf/9k=
    
    So I thought I wonder what image I could create completely randomly.

    So I wrote the following code

    Code:
    <cfset characterlist = 'q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n,m,Q,W,E,R,T,Y,U,I,O,P,A,S,D,F,G,H,J,K,L,Z,X,C,V,B,N,M,/,+,0,1,2,3,4,5,6,7,8,9'>
    
    <cfset base = 'data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBh'>
    
    <cfloop from="1" to="1000" index="i">
    <cfset output = base>
    <cfloop from="1" to="5734" index="i">
    	<cfset randomchar = ListGetAt(characterlist, randrange(1,listlen(characterlist)))>
    	<cfset output = output & randomchar>
    </cfloop>
    
    <Cfoutput>
    	<img src="#output#" />
    </Cfoutput>
    </cfloop>
    
    However I must admit this could take along time to achieve results.

    Does anyone know anything much about this? as it's peaked my interest this afternoon.
     
  2. Iccz

    Iccz
    Distinguished Member

    Joined:
    Apr 29, 2008
    Messages:
    24,060
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Location:
    Keystone City
    Ratings:
    +6,750
    Take a read into PHP - base64_encode, Google use it for preview images, the base64 reduces the server load time :thumbsup:
     
  3. Dancook

    Dancook
    Distinguished Member

    Joined:
    Feb 15, 2007
    Messages:
    15,278
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Ratings:
    +6,020
    And I wonder if there is an algorithm I could follow to produce random images with it? :)
     
  4. imightbewrong

    imightbewrong
    Distinguished Member

    Joined:
    Dec 6, 2005
    Messages:
    53,878
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    167
    Location:
    Romford-ish
    Ratings:
    +34,717
    Doesn't it make it bigger though? How does it make it faster? :)
     
  5. imightbewrong

    imightbewrong
    Distinguished Member

    Joined:
    Dec 6, 2005
    Messages:
    53,878
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    167
    Location:
    Romford-ish
    Ratings:
    +34,717
    Depends what you want them to look like :) You are talking about a massive problem-space there...
     
  6. Iccz

    Iccz
    Distinguished Member

    Joined:
    Apr 29, 2008
    Messages:
    24,060
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Location:
    Keystone City
    Ratings:
    +6,750
    I'm talking about the impact of server load.

    A quick google found someone who can explain it a bit better than I:
    When you should use base64 for images
     
  7. Dancook

    Dancook
    Distinguished Member

    Joined:
    Feb 15, 2007
    Messages:
    15,278
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Ratings:
    +6,020
    I was hoping to produce a completely random image :)

    but unfortunately the random generator hasn't yet produced one! :( I need more POWER
     
  8. Iccz

    Iccz
    Distinguished Member

    Joined:
    Apr 29, 2008
    Messages:
    24,060
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Location:
    Keystone City
    Ratings:
    +6,750
    Why would you want to generate a random image using base64 though? I can't see a practical use there?
     
  9. Dancook

    Dancook
    Distinguished Member

    Joined:
    Feb 15, 2007
    Messages:
    15,278
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Ratings:
    +6,020
    Practical use?

    hah.. it's just fun and games.
     
  10. imightbewrong

    imightbewrong
    Distinguished Member

    Joined:
    Dec 6, 2005
    Messages:
    53,878
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    167
    Location:
    Romford-ish
    Ratings:
    +34,717
    No - more power won't help you here - this is an NP-hard problem :)

    Ah I see - so you basically generate one big HTML file with the JPEG info embedded, rather than going back to the server for each image. Nothing to do with the actual 64-bit-ness of it.

    Okay - the world makes sense again, after a brief break :)
     
  11. Dancook

    Dancook
    Distinguished Member

    Joined:
    Feb 15, 2007
    Messages:
    15,278
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Ratings:
    +6,020
    Well actually, if I produce every combination....

    isn't it 64 ^ 5734 ?

    which is .. a lot.

    The PS3 could help me here...

    Code:
    4324847752461848290090909315130854872762801560922454004852275338606178629181106418082382441982652879547860864610865731975344525785987211736449447890884500285978127250772206628249799979446961792342127399982536892367389612003563613555705358628480482577035727923015913902780474490175753387606458166530350609159303615223931874796993636640362034283224637085772884912171017787810614161460730237352106930828816547072038658196376983150077120771938201141387004458027172288544429662311895518870099333714344303807980611873021659565040635487671850674469423625389686305350962501150085342367758665682324518743381196668114703088135565754463004571483127070174039668772180926512989059908574566805944013351258908198555231405816531049472708112808412307818946814448472633631179137340336439396668886607320594969342635945049074076941964010976959202117486652999194461575332725979066776652937288741545810877071781958334147246571762835065111808122084087943109457261733050690067725138897212976340902249869493147857621657832184881682657622685129061496155467426571222568112853397772200182374892701756838556871459426108264267307461740036756984642481221816061512589940681020891010046959532875292159295891950258504726136226731959273389256626110816497193280107846187335447477377778734905828086346154572825752264621295574190661511300829617340585320933721278368971106784967488575945692210974153571214898629204263055364319728958817631203514404773913912027218623979493754385695024686263599482478879086325646179254624347649920922887785637850685076178543498735248413017421043813793042871532978194634762259521865370989331466297970244272036729406506980378005229731105080927248426622145643998282330530157424646573908118822465951014726109362983847390979016536233162355437911444083837270764487631425584346987816157666640228768247199710189326788406927002283172203219335300470013554262018346277044886022673219838603500826885957203416142015705579292704041822957522632156699729219976479663421027209456761533704139286187102507021700613276855716233179404133396700348049094521266668216343998083142580245874060451230502203042685862754335526945486466422210339625981168424239270184429465425925872916150202712157419169521639920404865367045684247039357414217186408639616827026469807002695610264500962761241341357898342297581099831380849715943132015094686504300508899589132827092276242207333877953675779170566172423117827159336756428127042278833238540545021728441849349809791588399732403626751350167600230069368828691032312070229786610357024757210218820266240618717479132622683093983207513168421604756966064168141567341294047612937572144568386459715330497522752600227771124802451468091529111154694746235948763241141249501966468168528325825455015688475469675055357122813151978112828411954677219057112283382791540371640295977678878865546078201125010101635421516063140715291230384709181970454804668644309119957420884480941075471516527618410455630235161804521631906495557762132266924710765409230306535039564290706990924237868612290800061851328869455886213312992489562300733243074706503376453987187497843619643385890631542683674365160219084239464694538251309221797332811486215809521482569902904592112139472285618075753181512891612329646232161680430684350567882681444264827056319594838510515929867011338509016965757594246968849587290666615232759512623503689915530101547896149880464009114943391915869448536412679527014027476779851005376386579973549861339101141784374093444665089725493871787167970812048496749995247089173304864937557987822794631107912439890750208222452852148321003218343605021994774790887546620708417110235373118429249929582909306911874466795955056470358851171273273979101152539346795139042295619751523368496491297818867165748733628839298992896517697153317136443513429656067989874534287038936301105265307469953837088279388806095094612831371825264879141462911525041372787441281440314229631105961883464844155706406970790319959478677303734903231132777162497865753357226316581724965355573978975137167753855611122423809327482148734654694195738888510745483028962952396070450958016657204512841258063679674257668019267364226310184239650880967522502694936855464497601222942646675036911254137001323709623005758973112700804817896555240064770935000157515395175286489896530386985268384923033903980186069067330193581243458157679859533225353001916326408189339038716229501571760783195299456451285670582072938377644631755643739578486328513978237330859302454090049812857510137374826846898761318934830637792750281673297955948873896191732023615034757297061168337537573957481489754617730154886196848181076059094457374062594101622145481606828681252654055074668907972728550351523661891397291667180695611576629363239922215157389130790085087218801984165360684253834108027783032505973602802892166680595416851677479896507202095047230065288044403579587980882036242249914412841637231653606772062334264187162422445412770370835882738235729396021353859461755003880927657965533754699389464661846196427050441864711311411658535416455625401818860327625718771969095423037218945031333188609832888899143963491771061443300840262560759783512418477239315342227800592967597052417896574743721559562022459995082938848920875632333893476642790967506275608994222477663088825256422906130374359787902490288798889776163800585932745801972478655726810140051181380081612136095779429036809637488682628933818348027386513412458084189902060151739450577499933261943870446386520502540488361862842832252826951480761221160415746771917391400765558144698174536233679025612872650478698692014423959797210933023910159848999007369118287333536645865270892588852006419443340725276280403452640373719184156044544464300463856666357615550097452314977545187197760854728948786759883718265721128437270320026971271556852172782349271555489994039538890063581027603956201984467210255739549817352835198025859219464989825099938557971469633691768893488380367197276149457988749551891440349590918325907669865584827022997697973023739700469735866602053247769718771741213776696057624993058449394616770269438080983055559966902368995276024757122726301265364741194459616308910901391149000160535259927822519265355473791481859130684937139303903411962987284277550483287438010286198540779334734118987348617137153536496319173424187720499445582489178250380798559252864550614828856924882262774417046048538235146254473445824740673041798764615230877607117672948451427211450831514468256456652019780733790856987032149064975981800390590321112436851679470065384193552029256124089234902442168477676729886187159551549555177245908763795400295853502028587397240244613783160216619727777619452037983538207373999389892463632576151505723000317789763416274588586972763230916807862381280631496094178912073952069041143669077240240620164119956920071091357756478564905130353798308829535867794163359428096581059669797032225758522581370310356049632815173404723107377676912976486637994847288372483514798361495139844259450802105605569284588043934823014638889036478280031188375162382462315600455414904785067733732552147968446204988575691191966645408024662189910943974146150872904105214249063465330473906710312132468980696120139124371462890113517748333499579459645758684683254448054543512960859454784306001393665589681403929160334451037474456480431414384820430452328934101567173144466443801797524264303089014344206610429193553951974894093445271727657191682402050071444437921494794186956728126045659447095179090806417356751188618492518580972510935735911696301827875529201530332669516510403857961939389642992449240142289797876520905917864163410760930956918920388954727298272612756819524823214417335559431009675750469537191612352447485917878470604165584755471135473651331898712263021119920747640781535127762267694238758686723704713805142094433582039943253036660800374975934184142348045601420630203337073035310112449861662963459804672607877585674263461312689149545563028567106099950123635611108436253895651525769301813122596312154599570332250561721725561617365725227191107958197149869553877928394995425853482804323852681159786199627964201999082174640901920445029185447037143321820586710071112866440535837840132857935943548386671411786375575174003973403897281985033525884247566711704859800323099248684287146228031660318248808602171911953458232323448182412668411448791667045188245265743563543219725241621058819952954863463232628034210664139277557770766339918666909475090025774108747180764638375926985673925546772433693250072300722816541851307923489620686388240944294869347583135619840722474231780877878804376615024922016622318549668869821622526614961052733785113299482108690089712407594542742237173712769266853779549312716419480958167670960165261329827191072794585552194600565837983954903423486872463856903686040363936295228553204874386653929763207177135136928528080098886986914574101492126842984121915788913496346818952235291381186264602631150497358163782995241260831175181969861953588992304976360060070161187069193734170513717370415354896477613963976952853431876260435776914381499075195014214631674009907958596826507231957354479177133230225418549201794373667226245344095250827347127923484183489509329865486951441219341922482355050423633845924002726114157282193023005618519762669848313796364264947683623596849424784699664754514494281001099255745628813946148601035827683984693261446197829621428548652631671640602447797539686854201680406211299051485359093982439984304731353123202078014250392673106782428431780758375708486248779606114124097079877662511188153819906620455857120554867680101431215716644971024217711956233712394204162971602795015160025151089216635478192517401601970296868505128049207620792470335288128119709998573859215495450446331480541901909608084726185396614285955601828864823040211009558390516099572244048939187336425122457791646425959255777164589684428405360709601516417562937450141495668024637512754561178691669439538242861005231981505632857624306816890407885415752172631326401886191124901976507451852307269556422547492734248588197275651474878086654024985277257005819431805311115774837804797803916293589510582405881698273574873468685748883919900709028409701598539553072108420635475764320655236006375979662065735071366817949413316476954629282795724266552046849972837122996681544144946952685758142932750585830645373777842081920221370229886975177171663917074557446987017535954130336188793241901901972983403083998689000458405064404612141324386516962233569714226058724699260455114306607554017707091993777406774656962134016
    ..permutations

    http://www.wolframalpha.com/input/?i=64^5734
     
    Last edited: Nov 29, 2010
  12. imightbewrong

    imightbewrong
    Distinguished Member

    Joined:
    Dec 6, 2005
    Messages:
    53,878
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    167
    Location:
    Romford-ish
    Ratings:
    +34,717
    That's pretty much what NP-hard means :) What subset of that is valid images? 0.00000000000000000000000000000000000000000000000001%? :)
     
  13. Dancook

    Dancook
    Distinguished Member

    Joined:
    Feb 15, 2007
    Messages:
    15,278
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Ratings:
    +6,020
    If that! :) and even If I could manage it ..... how long would it take me to look through them all for images that make some kind of sense.

    And how many of those would have evolved into adult content :devil:
     
  14. imightbewrong

    imightbewrong
    Distinguished Member

    Joined:
    Dec 6, 2005
    Messages:
    53,878
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    167
    Location:
    Romford-ish
    Ratings:
    +34,717
    Not enough to justify it......

    ;)
     
  15. Dancook

    Dancook
    Distinguished Member

    Joined:
    Feb 15, 2007
    Messages:
    15,278
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    166
    Ratings:
    +6,020
    The dream is dead..
     
  16. GasDad

    GasDad
    Remembered (1964-2012)

    Joined:
    Mar 28, 2006
    Messages:
    5,407
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    136
    Location:
    Bristol
    Ratings:
    +758
    Generating every 16x16 monochrome image is actually impossible in this universe.

    Just to totally kill the ideal.
     
  17. GasDad

    GasDad
    Remembered (1964-2012)

    Joined:
    Mar 28, 2006
    Messages:
    5,407
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    136
    Location:
    Bristol
    Ratings:
    +758
    16x16 black and white images, is 2^256 permutations

    Can't be done.
     
  18. imightbewrong

    imightbewrong
    Distinguished Member

    Joined:
    Dec 6, 2005
    Messages:
    53,878
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    167
    Location:
    Romford-ish
    Ratings:
    +34,717
    I agree ;)
     

Share This Page

Loading...