As some of you may have noticed, attaching large images breaks the phpBB layout.
[DSC00580.JPG left]There is a way to make the "phpBB attachment MOD" do thumbnails, but I didn't like the way attachments get all their meta-info displayed. Nice for zip files and the like, not for images. They should be a natural part of the layout.
Luckily I had some code lying around I wrote for the school website I built a while ago. At that site we use phpBB as a sort of content management system, and the code allows for some flexibility when attaching images.
From now on, if you attach an image, you can give it a place in your message by enclosing the name in square brackets anywhere. So if you attach an image called 'DSC000237.jpg' then if you put '[dsc000237.jpg]' in the text, this gets replaced with the image. (The name is not case sensitive). The image will be resized if it is wider than 500 pixels, clickable for those that want to see the original image. Unless you put 'noframe' after it (i.e. '[dsc000237.jpg noframe]' ), the image will be placed inside a narrow white frame that also holds the attachment description.
[DSC00579.JPG]
If you say '[dsc000237.jpg left]' or '[dsc000237.jpg right]', the image will be inserted to the left or the right of the text flow, and resized to be 200 pixels wide. Again, you can add 'noframe' after the left or right to make the frame disappear.
Any images not mentioned in the text get shown at the bottom of the message, two side by side.
I've added a few pictures with this message so you get the idea. For the curious: it's a school in Eastern Germany, redesigned by Friendensreich Hundertwasser.
Peter Poelman said:
I've added a few pictures with this message so you get the idea. For the curious: it's a school in Eastern Germany, redesigned by Friendensreich Hundertwasser.
Click to expand...
Click to collapse
Oh, are you from Wien?
his flag leads one to believe that he's dutch
a picture is worth 1024 WORD's
or 512 DWORD's if you pref
Rudegar said:
his flag leads one to believe that he's dutch
a picture is worth 1024 WORD's
or 512 DWORD's if you pref
Click to expand...
Click to collapse
It's a Hundertwasser house that's why ...
How many posts do have to have to post an image?
hi,
i wanted to create my own background-theme, and this thread was very helpful:
http://forum.xda-developers.com/showpost.php?p=3062019&postcount=54
(you need the Background4AllTabs "5c9aa261_manila" & "4a087e41_manila" from NisseDILLIGAF)
the problem was, i had a circle in the picture, and every time it was stretched or squashed, wrong aspect ratio, not fitting well. so i did a little research myself - pixelcounting fun.
conclusion:
1. crop your original-pic (maybe 800x480) to 700x480 (the real background size, 50 px from the top and 50 px from bottom)
2. create an new empty 512x512 file
3. resize your 700x480-pic to 512x460, squash squash squash (!)
4. paste it in the empty 512x512 on the left side(!) leaving an empty unused bar of 52px on the right side
5. do all steps from the link above to convert it for manila
nothing stretched or squashed anymore. full circles.
FINAL note:
this method works only for NisseDILLIGAF's *5c9aa261_manila* that came from the diamond. it works, but it also has the blackhole problem.
bbonzz's method (look below) works for http://forum.xda-developers.com/showpost.php?p=3068310&postcount=60 (blackhole solution).
both have no problems with nocurtains-mod. baah, too much confusion about the manila files...
Actually the background is 480x636 (image 1), because of the top curtain hole in background4alltabs.
So, to keep the aspect ratio, what you have to do is more simple:
1) cut you 480x800 (image 2) to 480x636 (image 3) keeping 52 px from bottom (bottom bar) and 112 from top (top bar+top curtain)
2) stretch to 460x512 (image 4)
3) add a 52px transparent (or whatever: black, white... It will be invisible anyway) canvas to the right (image 5)
voilĂ , you have a pic for Manila Editor, and once installed on Blackstone, Manila will resize it back to the original 480x636, without distortion and without shifting a single pixel. You can verify this by using the original 480x800 as background for the home tab (image 1): switching tabs, you'll notice the image is still the same: no movements, no distortions.
do you guys have a problem with a black hole at the top of the background in sound settings on the settings tab ?
check this!
hi bbonzz,
i tried your version and it does not match. check the attachment.
manila stretched the logo and it ended up as an egg.
the best way is to compare the original (800x480) as homescreen-background against the manila version background in the other tabs. that was the game i was playing. after several try&errors i found it. the mapping-coordinates for the manila-background in my tf3d background4alltabs is 700x480. 50px less reserved for the top-taskbar and 50px less reserved for the softbutton-bar at the bottom.
manila stretches the left space of the 512x512 texture (512x460) to 700x480 perfectly and the aspect ratio of the original is back.
by the way, the black hole is still a problem, but doesn't bother me.
maybe it depends on which 5b9aa261 are you using: on my HD (with the "corrected and not the original 5b9aa261), using the same try&error way, i have the perfect fit with the 480x636 thing, as you see in the screenshot. Later i'll try with your attachment
ok, i forgot to mention that "nocurtains" is installed on my hd. maybe thats the reason why you got 636 px instead of 700 px.
4a087e41_manila
Hi sir AlecDelorean and other member can you make me a 4a087e41_manila with my attach file, thanks advanced...
please test this
hi p_elmenzo,
do yo have the 2 files from background4alltabs already installed?
if yes, here you go. don't forget to backup you original manila files.
don't blame me if something goes wrong
and please compare your original pic as background for the homescreen against the new background in the other tabs. if anything moves, or looking stretched, send me a screenshot.
4a087e41_manila
Thank you very much AlecDelorean...
Grazie Mille AlecDelorean...
4a087e41_manila
Hi, again AlecDelorean i have a small problem when i change my tab the background image has change maybe the pixel of the image.
i know, its a problem of the image-compression/conversion in manila-editor. when i have time, i add a little grain in photoshop to trick the compression-algorithm.
4a087e41_manila
Ok Thanks a lot...
here you go again
ok, did some tests. i don't know much about the converting process of the manila editor, but it seems it reduces a lot of bandwidth of the colorspace combined with very rude compression. so by example - gradients loose a lot of quality, instead of other more colorful pictures where the difference of every neighbor pixel is higher. maybe its the 3d-texture method htc is using, they try to save as much memory as they can. an interesting thing to notice (compare your screenshots with the original pic), there is an converting-process included in tf3d by itself, but only for the homescreen, when you choose an own picture for the homescreen background - tf3d crops it, adds grain and compression.
enable your background of the homescreen back to standard, because the manila-background is the background4alltabs now and you can't see the difference anymore if you switch from homescreen-tab to the others.
4a087e41_manila
Hi, AlecDelorean do you have the original file of 4a087e41_manila and 5c9aa261_manila? thanks a lot.
haha
tired of messing around with the backgrounds?
you need only one. 4a087e41_manila is a new image file for background4alltabs, 5c9aa261_manila is a script that was changed.
Hey AlecDelorean, can you do this for me as well.. Thanks!
I have just one question...
HOW do i get rid of the black curtain on top of the screen??
please please please say me how!!!
In nearest future we wont use this method. A real background for all pages done.
mun_rus said:
In nearest future we wont use this method. A real background for all pages done.
Click to expand...
Click to collapse
Our saviour is back! Hope your feeling well now..
@ ArchonX
ArchonX said:
I have just one question...
HOW do i get rid of the black curtain on top of the screen??
please please please say me how!!!
Click to expand...
Click to collapse
hey ArchonX,
this is the version of NoCurtains that is working for me:
With the 800x1280 screen of the Gnex I have had to toss alot of my mobile specific wallpapers from previous devices.
In my search for wallpapers I have come across a great thread on another forum
http://euphoricarythmia.com/showthread.php?t=31291
Where the OP has individually posted a number of hi-res images at around 1440x1280.
I took the liberty of downloading those images and putting them into 1 file for easy download
http://www.multiupload.com/T4YYHI7WHO
Please feel free to post links to your wallpapers.
LETS GET A WALLPAPER THREAD GOING
Goat_For_Sale said:
With the 800x1280 screen of the Gnex I have had to toss alot of my mobile specific wallpapers from previous devices.
In my search for wallpapers I have come across a great thread on another forum
http://euphoricarythmia.com/showthread.php?t=31291
Where the OP has individually posted a number of hi-res images at around 1440x1280.
I took the liberty of downloading those images and putting them into 1 file for easy download
http://www.multiupload.com/T4YYHI7WHO
Please feel free to post links to your wallpapers.
LETS GET A WALLPAPER THREAD GOING
Click to expand...
Click to collapse
Saw initial post, very nice walls.Thank you
thanks for posting these, mate! been looking for some more every day!
How do you use the wallpaper on the Galaxy nexus?
Everytime I select one of the pictures it crops and shrinks it hard.
I think they are all from Interfacelift
JustAnotherDay said:
How do you use the wallpaper on the Galaxy nexus?
Everytime I select one of the pictures it crops and shrinks it hard.
Click to expand...
Click to collapse
Long press home screen, select gallery, select wallpaper, drag from any blue square corner to resize (to full size) and you are done.
Sent from my Garmin-Asus A10 using Tapatalk
http://forum.xda-developers.com/showthread.php?t=1375377
Hi, here is my problem.
Attached are the screenshots:
Picture 1: Current wallpaper
Picture 2: Try to add a 1440x1280 as the background
Picture 3: Move the crop to take up the full screen
Picture 4: Picture only takes up a tiny bit of the screen.
Anyone know what's wrong?
Cheers.
NOTE: This is only instructional information for those looking to make their own 1920x1920 edited HD wallpapers and are tired of looking for 1920x1920 wallpapers. I didn't see a similar thread on here and thought I would share some tips for those who aren't familiar with making/editing their own wallpapers.
So I got tired of searching for wallpapers and just edited desktop wallpapers for myself. I just searched on Google for cool stuff, like zombies, movies, anime, digital art, robots, etc, and found a bunch of 1920x1080 wallpapers. I would also recommend adding HD or 1080p in your search criteria to ensure the best quality. Obviously they are made for desktops, so I used Gimp 2 to edit them, by doing an Image > Canvas Size, switching the width to 1080 so it's then 1080x1080. Then do an Image > Scale Image and upscale them to 1920x1920. It's difficult to do because you're essentially taking a rectangular image and making it into a square image when it's not really designed for that. But if you can find the right images, it should be pretty easy to decide how to resize them and to know what to cut off. I've attached an example below. Once you've resized the image to 1080x1080, scale it to 1920x1920, and then if it needs a Sharpen filter, go to Filter > Enhance > Sharpen. And I found out the hard way that Gimp is different from photoshop, as you can't save files that easily as .png/.jpg/.gif file types. You can't just select Save As, you have to go to File and then Export to save it that way.
You can use Photoshop to do this as well. I just particularly prefer Gimp, but to each their own And you can get Gimp for free, just search for Gimp on google.com and it should be the first or second link there that you can download and install it for free. If you want to see more of the ones I've made, as I've made a good bit, just PM me and I can email you a zip file with all the ones I've made in it. If enough people ask for them, I may just edit this post and see if I can just upload them all on here. Or some of them anyway
Image 1. Shows how to resize
Image 2. Shows how to scale image
Image 3. Shows final image
If you have any questions, let me know. (Tried to make this as detailed as possible if you aren't familiar with Gimp or photo editing)
Can someone offer a detailed explanation of all 9 drawing modes? All the reference material and tutorials only explain the obvious ones (e.g. clear, XOR).
The background is the image as it appears after each previous layer has been drawn in sequence.
( 4th object's background is the three objects before it )
Normal : draws directly over the background.
Clear : deletes the background
XOR : the xor of each byte of ARGB with the background
Add : add the byte of each ARGB with the background
Darken : draw the darker of the current layer or the background
DST : << I believe this mode is essentially don't draw >>
Lighten : like darken, only drawing the lighter of the two pixels.
Multiply : Multiplies the ARGB against each other, always results in a light color (more white)
Overlay : Similar to add or multiply, but not as powerful.
Screen : basically normal, but less powerful.
SRC : << Clear all under and draw this instead >>
Monochrome : draw this but set the color bytes to the same value ( I believe lowest, or average )
I would like to see a more accurate one, but this should cover it.
Thanks, Silverware. I did a little research and found some good reference links (shown below). These drawing modes are known as Porter-Duff composites and their exact algorithms are given in the reference links. Apparently there are as many as 18 of these modes, although Zooper only incorporates 9 of them. Too bad... some of them look very useful.
Incidentally, the SRC drawing mode appears to be working incorrectly. It is supposed to show ONLY the source layer; however, it also shows the destination graphics. Bug perhaps?
Reference links:
Well, crap... new users can't post links?!!! Lame. Just google Porter-Duff. The link at w3.org has the best descriptions.