add avif/webp support
This commit is contained in:
parent
78b920a6c6
commit
800a3f4a5e
@ -115,7 +115,7 @@ worrying as I thought I had damaged the board. As it turns out I didn't.
|
||||
Still, it was not a smart idea, so *disconnect your CMOS battery before
|
||||
soldering*
|
||||
|
||||
![The voltage measurement of CMOS-Battery](/images/Multimeter-192x300.jpg#center)
|
||||
![The voltage measurement of CMOS-Battery](/images/Multimeter-192x300.jpg)
|
||||
|
||||
Also, the bios didn't boot after I reassembled the Laptop. Reheating the
|
||||
"destroyed" joints seems to have fixed this. Meaning that the BIOS chip
|
||||
@ -136,7 +136,7 @@ go for it. Just make sure to take your time and fit it tightly to the
|
||||
board. In my personal experience, the Kapton-tape is good enough that
|
||||
you don't even desolder the small components. Well, at least they don't move if they do and resolder fine.
|
||||
|
||||
![Board covered in Kapton tape -- notice the dodgy solder balls around the chip](/images/IMG_20180321_152222-e1522049347702-1024x579.jpg#center)
|
||||
![Board covered in Kapton tape -- notice the dodgy solder balls around the chip](/images/IMG_20180321_152222-e1522049347702-1024x579.jpg)
|
||||
*Board covered in Kapton tape -- notice the dodgy solder balls around the chip*
|
||||
|
||||
|
||||
@ -154,7 +154,7 @@ Remove the Kapton-Tape from the board when you're done unless you want
|
||||
to use the heat gun to solder the replacement into place. Don't throw
|
||||
the old one away, we'll need it later.
|
||||
|
||||
![The chip finally came off the board without lifting any pads. --- the Kapton-Tape has darkened a bit.](/images/desoldered-e1522272630299-1024x579.jpg#center)
|
||||
![The chip finally came off the board without lifting any pads. --- the Kapton-Tape has darkened a bit.](/images/desoldered-e1522272630299-1024x579.jpg)
|
||||
*The chip finally came off the board without lifting any pads. --- the Kapton-Tape has darkened a bit.*
|
||||
|
||||
## Soldering the new chip
|
||||
@ -169,7 +169,7 @@ the chip on the board and solder one pin to the board so it doesn't move
|
||||
anymore. Then take your time soldering the other seven.
|
||||
|
||||
|
||||
![The new chip is soldered to the board, you can clearly see the alignment of the chip in the picture.](/images/new-chip-e1522273951282-1024x579.jpg#center)
|
||||
![The new chip is soldered to the board, you can clearly see the alignment of the chip in the picture.](/images/new-chip-e1522273951282-1024x579.jpg)
|
||||
*The new chip is soldered to the board, you can clearly see the alignment of the chip in the picture.*
|
||||
|
||||
## Extracting the original firmware
|
||||
@ -182,7 +182,7 @@ jumper wire off and attached the tiny copper wires. then I soldered
|
||||
those to our old chip. To relieve stress I used the tape to hold it
|
||||
down.
|
||||
|
||||
![Wires soldered to the chip, make sure you know where Pin 1 is before you tape it down. Later I spaced the wires on the left side out a bit more to prevent a short.](/images/soldered-wires-1-294x300.jpg#center)
|
||||
![Wires soldered to the chip, make sure you know where Pin 1 is before you tape it down. Later I spaced the wires on the left side out a bit more to prevent a short.](/images/soldered-wires-1-294x300.jpg)
|
||||
*Wires soldered to the chip, make sure you know where Pin 1 is before you tape it down. Later I spaced the wires on the left side out a bit more to prevent a short.*
|
||||
|
||||
------------------------------------------------------------------------
|
||||
@ -273,7 +273,7 @@ and our new chip works. First, you wire up your SOIC8-clip. The wiring
|
||||
is the same as in the table above. Then you clip it onto the chip on the
|
||||
board, make sure that there is no battery attached to the board!
|
||||
|
||||
![The clip attached to the chip. Getting it to make a good connection can be hard the first times.](/images/writing-the-new-chip-e1522281795259-1024x621.jpg#center)
|
||||
![The clip attached to the chip. Getting it to make a good connection can be hard the first times.](/images/writing-the-new-chip-e1522281795259-1024x621.jpg)
|
||||
|
||||
|
||||
On our Raspberry Pi, we now verify that the chip gets recognized and
|
||||
|
@ -24,10 +24,10 @@ Alle meine Schichten waren aufgrund meines Schichtpartners am Samstag, dementspr
|
||||
|
||||
Der Samstagabend ist traditionell für eine Abendveranstaltung für Helfer und Mitstreiter reserviert. So mussten um 18 Uhr alle Besucher das Zentrale Hörsaal- und Seminar-Gebäude der TU Chemnitz verlassen, während im Obergeschoss bereits der Aufbau für ein Festessen vor sich ging.
|
||||
|
||||
![CLT: Chemnitzer Cateringtage mit Linux-Vorträgen](/images/clt_catering.jpg#center)
|
||||
![CLT: Chemnitzer Cateringtage mit Linux-Vorträgen](/images/clt_catering.jpg)
|
||||
*Da das Essen meist extra in der Presse erwähnt wird, hat sich wohl jemand einen kleinen Spaß erlaubt ;-)*
|
||||
|
||||
![Das ist ein Teil von dem, was nach 3 Stunden noch übrig war](/images/clt_essen.jpg#center)
|
||||
![Das ist ein Teil von dem, was nach 3 Stunden noch übrig war](/images/clt_essen.jpg)
|
||||
*Das ist ein Teil von dem, was nach 3 Stunden noch übrig war*
|
||||
|
||||
Während des kompletten Samstags habe ich mich mit vielen Studierenden und auch promovierten Informatikern unterhalten. Diese hatten ein paar sehr gute Tipps für mich. Grade jetzt wo auch mein Studium am seidenen Faden hängt, kam mir dies sehr gelegen.
|
||||
|
49
layouts/_default/_markup/render-image.html
Normal file
49
layouts/_default/_markup/render-image.html
Normal file
@ -0,0 +1,49 @@
|
||||
<center>
|
||||
<picture>
|
||||
{{ $isJPG := eq (path.Ext .Destination) ".jpg" }}
|
||||
{{ $isPNG := eq (path.Ext .Destination) ".png" }}
|
||||
|
||||
{{ if ($isJPG) -}}
|
||||
{{ $avifPath:= replace .Destination ".jpg" ".avif" }}
|
||||
{{ $avifPathStatic:= printf "static/%s" $avifPath }}
|
||||
|
||||
{{ if (fileExists $avifPathStatic) -}}
|
||||
<source srcset="{{ $avifPath | safeURL }}" type="image/avif" >
|
||||
{{- end }}
|
||||
|
||||
{{ $webpPath:= replace .Destination ".jpg" ".webp" }}
|
||||
{{ $webpPathStatic:= printf "static/%s" $webpPath }}
|
||||
|
||||
{{ if (fileExists $webpPathStatic) -}}
|
||||
<source srcset="{{ $webpPath | safeURL }}" type="image/webp" >
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{ if ($isPNG) -}}
|
||||
{{ $avifPath:= replace .Destination ".png" ".avif" }}
|
||||
{{ $avifPathStatic:= printf "static/%s" $avifPath }}
|
||||
|
||||
{{ if (fileExists $avifPathStatic) -}}
|
||||
<source srcset="{{ $avifPath | safeURL }}" type="image/avif" >
|
||||
{{- end }}
|
||||
|
||||
{{ $webpPath:= replace .Destination ".png" ".webp" }}
|
||||
{{ $webpPathStatic:= printf "static/%s" $webpPath }}
|
||||
|
||||
{{ if (fileExists $webpPathStatic) -}}
|
||||
<source srcset="{{ $webpPath | safeURL }}" type="image/webp" >
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{ $img := imageConfig (add "/static" (.Destination | safeURL)) }}
|
||||
|
||||
<img
|
||||
src="{{ .Destination | safeURL }}"
|
||||
alt="{{ .Text }}"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
width="{{ $img.Width }}"
|
||||
height="{{ $img.Height }}"
|
||||
/>
|
||||
</picture>
|
||||
</center>
|
Loading…
Reference in New Issue
Block a user