25 Apr 2009 11:06 AM #21
1.- a live preview is almost imposible because the script has to change the hue saturation and lighting of the images. If you run the project and created a new theme you must have seen the log of the script and it says you it makes 182 new gif's and other png's so if i am going to get it live when someone move the hue one by one i will have to regenerate all the images and the colors of the theme to make that available so if you move hue by 1 you then have to wait like 60-120 secs to get the preview (maybe more depends on how is the current cpu charge on my server). But i am thinking on making another aproach to this and maybe in the future i can have it done (i will try to make an small file with only (lets say) the window control, to make the live preview), thanks for sharing your notes though to make me think on it.
2.- why you want to change to RGB? to change color by color of the file? that would be in a future version of the tool. (Maybe a too far future)Javier Rincón aka SysCobra
25 Apr 2009 1:30 PM #22
Don't understand it as critic, i really like itvg Steffen
Release Manager of TYPO3 4.5
26 Apr 2009 6:40 PM #23
since the set of colours, hues and saturation is limited, you could simply cache each generated theme on the server i.e. you end up generating each permutation only once, but only on-demand, leading to less overhead overall (requires disk space though).
with that in place, a buffer on the slider controls for hue / saturation + a modal loadmask while the theme is being generated should take care of trigger-happy users.
just a thought
26 Apr 2009 6:51 PM #24
technically you could also just create a script that goes through all the possible permutations and save them for caching. one such job can run for a few minutes
26 Apr 2009 6:59 PM #25
27 Apr 2009 4:16 AM #26
27 Apr 2009 4:20 AM #27
I was thinking about this last night when going to bed (i think a lot about programming when i'm not in front of the computer) and my post earlier reminded me of the 'rainbow tables', which hackers use.
Read up here:
27 Apr 2009 4:22 AM #28
One last bit, if you need help automagically creating sprites with Image magik, i've been able to do it with the famfamfam by using a simple shell script.
27 Apr 2009 5:33 AM #29
-360 .. 360 of hue values = 720 possible values
-100 .. 100 of saturation = 200 possible values
-100 .. 100 of lightness = 200 possible values
That means that i can have 720*200*200 possible values, its 28.800.000 possible permutations. So for 90kb (the zip) file and like 65kb(in windows it takes 500kb) (the images)+38kb (the css) of the theme file, for the whole theme in disk...that said i must have a 5.300 GB disk. or a 6TB disk lol, So this aproach sorry but i dont think so. Can you imagine caching all that up?
What i am thinking is about to have an small control, like a window, with an small css and only 2 or 3 image files, so when people move the hue saturation and lighting only change on the fly that small css and files. that will end up in like a 3 or 5 secs after moving. Guess i will have to try that before i implement it.
P.D.(I think a lot about programming not in front of computer too, just last night i end up sleeping at 2:00am because i couldn't get my brain out of thinking about the future of this application and others i am making)
Thanks all for the feedback and ideas. I will take care of them and look into it.Javier Rincón aka SysCobra
27 Apr 2009 5:59 AM #30
A nice addition will be colorizing. For images you could use http://ch2.php.net/manual/de/function.imagefilter.php with IMG_FILTER_COLORIZE to perform that. CSS Values you have to recalculate...
With 3 slider for Red/Green/Blue, that would be really nice
But anyway, that is a damn hot tool
Thread Participants: 20
- galdaka (2 Posts)
- email@example.com (7 Posts)
- stever (1 Post)
- mystix (2 Posts)
- dawesi (1 Post)
- Foggy (1 Post)
- chh (1 Post)
- Brendan Carroll (1 Post)
- pcrombach (1 Post)
- mjlecomte (2 Posts)
- steffenk (2 Posts)
- joeri (1 Post)
- mandrack (1 Post)
- wm003 (1 Post)
- Lobos (1 Post)
- lorezyra (1 Post)
- bt_bruno (1 Post)
- benmclendon (1 Post)
- mschwartz (4 Posts)
- inishi01 (1 Post)