<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DailyTech Hub</title>
    <description>The latest articles on DEV Community by DailyTech Hub (@dailytechid).</description>
    <link>https://dev.to/dailytechid</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3333428%2F980eeefc-6f40-4a62-9421-2ae02e5c5221.jpg</url>
      <title>DEV Community: DailyTech Hub</title>
      <link>https://dev.to/dailytechid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dailytechid"/>
    <language>en</language>
    <item>
      <title>How to Build a Timesheet in Google Sheets That Handles Overnight Shifts and Overtime</title>
      <dc:creator>DailyTech Hub</dc:creator>
      <pubDate>Tue, 17 Nov 2026 09:02:31 +0000</pubDate>
      <link>https://dev.to/dailytechid/how-to-build-a-timesheet-in-google-sheets-that-handles-overnight-shifts-and-overtime-4kf5</link>
      <guid>https://dev.to/dailytechid/how-to-build-a-timesheet-in-google-sheets-that-handles-overnight-shifts-and-overtime-4kf5</guid>
      <description>&lt;p&gt;The classic timesheet formula breaks on the shift that ends after midnight. Subtract a 10:00 PM start from a 6:00 AM finish and the result is negative.&lt;/p&gt;

&lt;p&gt;This tutorial builds a weekly timesheet in Google Sheets that handles that shift, takes off unpaid breaks, splits regular hours from overtime and shows totals past 24 hours. The layout is simplified, and the example is a made-up week with 49.5 hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. One row per day
&lt;/h2&gt;

&lt;p&gt;Put these headers in row 1:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;A&lt;/th&gt;
&lt;th&gt;B&lt;/th&gt;
&lt;th&gt;C&lt;/th&gt;
&lt;th&gt;D&lt;/th&gt;
&lt;th&gt;E&lt;/th&gt;
&lt;th&gt;F&lt;/th&gt;
&lt;th&gt;G&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Date&lt;/td&gt;
&lt;td&gt;Day&lt;/td&gt;
&lt;td&gt;Project&lt;/td&gt;
&lt;td&gt;Time in&lt;/td&gt;
&lt;td&gt;Time out&lt;/td&gt;
&lt;td&gt;Break (min)&lt;/td&gt;
&lt;td&gt;Hours worked&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Type the Monday of the week in &lt;strong&gt;A2&lt;/strong&gt;, then in &lt;strong&gt;A3&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=A2+1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copy A3 down to A8. In &lt;strong&gt;B2&lt;/strong&gt;, copy down to B8:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=TEXT(A2, "ddd")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Type times the way you normally would, such as 8:30 AM or 5:00 PM, and format D:E with Format &amp;gt; Number &amp;gt; Time. For Project, select C2:C8, open Data &amp;gt; Data validation &amp;gt; Add rule and choose Dropdown (from a range) with your project list.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Hours worked, including overnight
&lt;/h2&gt;

&lt;p&gt;In &lt;strong&gt;G2&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(OR(D2="", E2=""), 0, MAX(0, MOD(E2-D2, 1)*24 - N(F2)/60))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Times are stored as fractions of a day. E2-D2 is the span, multiplying by 24 turns it into hours, and N(F2)/60 removes the break. The MOD is the part that handles midnight. For 10:00 PM to 6:00 AM, E2-D2 comes out as a negative fraction, and MOD(..., 1) wraps it to a positive one. Without it, the same cells give -16 hours. MAX(0, ...) stops a long break from producing a negative day.&lt;/p&gt;

&lt;p&gt;An in time and an out time that are identical return 0, not 24 hours.&lt;/p&gt;

&lt;p&gt;Copy G2 down to G8. The sample week:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Day&lt;/th&gt;
&lt;th&gt;In&lt;/th&gt;
&lt;th&gt;Out&lt;/th&gt;
&lt;th&gt;Break&lt;/th&gt;
&lt;th&gt;Hours&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Mon&lt;/td&gt;
&lt;td&gt;8:30 AM&lt;/td&gt;
&lt;td&gt;5:30 PM&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;8.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tue&lt;/td&gt;
&lt;td&gt;8:30 AM&lt;/td&gt;
&lt;td&gt;6:00 PM&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;9.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wed&lt;/td&gt;
&lt;td&gt;9:00 AM&lt;/td&gt;
&lt;td&gt;6:30 PM&lt;/td&gt;
&lt;td&gt;60&lt;/td&gt;
&lt;td&gt;8.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thu&lt;/td&gt;
&lt;td&gt;8:00 AM&lt;/td&gt;
&lt;td&gt;7:00 PM&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;10.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fri&lt;/td&gt;
&lt;td&gt;8:30 AM&lt;/td&gt;
&lt;td&gt;5:00 PM&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;8.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sat&lt;/td&gt;
&lt;td&gt;9:00 AM&lt;/td&gt;
&lt;td&gt;2:00 PM&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;5.0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A night row with 10:00 PM in, 6:00 AM out and no break returns 8.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Shade the weekend
&lt;/h2&gt;

&lt;p&gt;Select A2:G8, open Format &amp;gt; Conditional formatting, and under "Format cells if" choose Custom formula is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=WEEKDAY($A2, 2)&amp;gt;5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With 2 as the second argument, Monday is 1, so 6 and 7 are Saturday and Sunday. The $ before A applies the shading to the whole row.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Regular hours, overtime and pay
&lt;/h2&gt;

&lt;p&gt;Put your numbers in column J and the labels in column I: J1 hourly rate (22.5), J2 overtime threshold in hours per week (40) and J3 overtime multiplier (1.5). Treat the 40 and the 1.5 as placeholders and enter the rule your employer uses. Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;J5: =SUM(G2:G8)
J6: =MIN(J5, J2)
J7: =MAX(0, J5-J2)
J8: =J1*(J6+J7*J3)
J9: =TEXT(J5/24, "[h]:mm")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;J5 is 49.5, J6 is 40 and J7 is 9.5.&lt;/li&gt;
&lt;li&gt;J8 is 22.5 x (40 + 9.5 x 1.5) = 22.5 x 54.25 = 1,220.625, which shows as $1,220.63. It is an estimate for your own records, before taxes, not payroll.&lt;/li&gt;
&lt;li&gt;J9 shows 49:30. The [h] in the format keeps counting past 24 hours, where a plain time format would wrap back to zero.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Two-week pay periods
&lt;/h2&gt;

&lt;p&gt;For a two-week period, do not add both weeks and compare the total with 80. Judge each week against the weekly threshold, then add the overtime. With the week totals in K1 and K2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=MAX(0, K1-J2) + MAX(0, K2-J2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If week 1 is 49.5 hours and week 2 is 38, that returns 9.5 + 0 = 9.5 overtime hours. Judging the 87.5-hour total against 80 would give 7.5. Which method applies depends on your employer's rule, so use the one that matches it.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. A five-minute weekly routine
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Type the new Monday in A2 and clear D2:F8.&lt;/li&gt;
&lt;li&gt;Fill in times as the week goes, one row per day.&lt;/li&gt;
&lt;li&gt;On the last day, read J5 to J9 before you submit anything.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  If you want it ready-made
&lt;/h2&gt;

&lt;p&gt;There is a free &lt;a href="https://hub.dailytech.id/freebies/timesheet-template/" rel="noopener noreferrer"&gt;timesheet template&lt;/a&gt; with Weekly and Biweekly sheets, a Settings sheet with a rounding step and a Dashboard that splits regular and overtime hours. It comes as a Google Sheets copy. The formulas above are enough to build your own.&lt;/p&gt;

&lt;p&gt;How do you record shifts that cross midnight today: one row with a MOD formula, or split across two rows?&lt;/p&gt;

</description>
      <category>googlesheets</category>
      <category>spreadsheet</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to Build a Purchase Order in Google Sheets With the Discount, Tax and Shipping in the Right Order</title>
      <dc:creator>DailyTech Hub</dc:creator>
      <pubDate>Fri, 13 Nov 2026 17:26:39 +0000</pubDate>
      <link>https://dev.to/dailytechid/how-to-build-a-purchase-order-in-google-sheets-with-the-discount-tax-and-shipping-in-the-right-3f9b</link>
      <guid>https://dev.to/dailytechid/how-to-build-a-purchase-order-in-google-sheets-with-the-discount-tax-and-shipping-in-the-right-3f9b</guid>
      <description>&lt;p&gt;The total on a purchase order depends on the order of the arithmetic. The discount comes off the subtotal first, tax applies only to the taxable lines after that, and shipping is added last with no tax on it. Reorder any of those and the total changes.&lt;/p&gt;

&lt;p&gt;This tutorial builds that logic in Google Sheets with one array formula, one dropdown and one SUMIFS. The layout is a simplified one, and the numbers come from a six-line office supply order.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Set up the line table
&lt;/h2&gt;

&lt;p&gt;Put these headers in row 1:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;A&lt;/th&gt;
&lt;th&gt;B&lt;/th&gt;
&lt;th&gt;C&lt;/th&gt;
&lt;th&gt;D&lt;/th&gt;
&lt;th&gt;E&lt;/th&gt;
&lt;th&gt;F&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Item #&lt;/td&gt;
&lt;td&gt;Description&lt;/td&gt;
&lt;td&gt;Qty&lt;/td&gt;
&lt;td&gt;Unit price&lt;/td&gt;
&lt;td&gt;Taxable&lt;/td&gt;
&lt;td&gt;Amount&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You type into A to E. Column F calculates. Rows 2 to 16 give you 15 lines. The sample order has six: 6 cases of copy paper at 38.50, 10 boxes of pens at 4.75, 4 staplers at 12.00, 3 task chairs at 129.00, 2 docking stations at 89.50 and 5 packs of sticky notes at 9.90.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Fill Amount with one array formula
&lt;/h2&gt;

&lt;p&gt;In &lt;strong&gt;F2&lt;/strong&gt; only:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=ARRAYFORMULA(IF((C2:C16="")+(D2:D16=""), "", ROUND(C2:C16*D2:D16, 2)))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One formula fills F2:F16. It adds the two empty-checks together instead of using OR, because OR squeezes a whole range into a single TRUE or FALSE. Blank lines stay blank, and SUM skips them. Keep F3:F16 empty, or the array has no room to spill and you get #REF!.&lt;/p&gt;

&lt;p&gt;The six amounts are 231.00, 47.50, 48.00, 387.00, 179.00 and 49.50.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Add a Taxable dropdown
&lt;/h2&gt;

&lt;p&gt;Select E2:E16, then Data &amp;gt; Data validation &amp;gt; Add rule. Set Criteria to Dropdown and add two items, Yes and No.&lt;/p&gt;

&lt;p&gt;The tax formula counts the exact word Yes. Without the dropdown, a typo like "Ye" drops that line out of the tax base and nothing warns you.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Build the totals in order
&lt;/h2&gt;

&lt;p&gt;Labels go in H1:H7 (Subtotal, Discount %, Discount, Tax rate, Sales tax, Shipping, Total). The values go in column I:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I1: =SUM(F2:F16)
I2: 0.03
I3: =-ROUND(I1*I2, 2)
I4: 0
I5: =ROUND(SUMIFS(F2:F16, E2:E16, "Yes")*(1-I2)*I4, 2)
I6: 45
I7: =I1+I3+I5+N(I6)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;I3 is negative, so the total is a plain sum.&lt;/li&gt;
&lt;li&gt;I5 multiplies the taxable lines by (1 - I2), so tax is figured after the discount. Shipping never enters I5, so it stays out of the tax base.&lt;/li&gt;
&lt;li&gt;N(I6) turns an empty or text cell into 0, so a blank Shipping cell does not break the total.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With the sample numbers: 942.00 - 28.26 + 0.00 + 45.00 = 958.74. The tax rate starts at 0 because the right rate depends on where you buy, who you buy from and what you buy. Type a rate you have confirmed.&lt;/p&gt;

&lt;p&gt;To see the order at work, change the rate. 7.25% below is only an example.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Case&lt;/th&gt;
&lt;th&gt;Sales tax&lt;/th&gt;
&lt;th&gt;Total&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Rate 0&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;958.74&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate 7.25%, all six lines Yes&lt;/td&gt;
&lt;td&gt;66.25&lt;/td&gt;
&lt;td&gt;1,024.99&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate 7.25%, docking stations set to No&lt;/td&gt;
&lt;td&gt;53.66&lt;/td&gt;
&lt;td&gt;1,012.40&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the middle row, 942.00 x 0.97 x 0.0725 = 66.25. For the last, the taxable lines drop to 763.00, and 763.00 x 0.97 x 0.0725 = 53.66.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Add the lead time
&lt;/h2&gt;

&lt;p&gt;Put the order date in &lt;strong&gt;I9&lt;/strong&gt; and the delivery date in &lt;strong&gt;I10&lt;/strong&gt;. In &lt;strong&gt;I11&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(OR(I9="", I10=""), "", I10-I9)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For 10/19/2026 and 11/02/2026 it returns 14. If Sheets shows the result as a date, set Format &amp;gt; Number &amp;gt; Number.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Check it before you send it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Change the discount to 0 and confirm the total equals subtotal plus tax plus shipping.&lt;/li&gt;
&lt;li&gt;Set one line to No and watch Sales tax drop.&lt;/li&gt;
&lt;li&gt;Clear Shipping and confirm the total still calculates.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  If you want it ready-made
&lt;/h2&gt;

&lt;p&gt;There is a free &lt;a href="https://hub.dailytech.id/freebies/purchase-order-template/" rel="noopener noreferrer"&gt;purchase order template&lt;/a&gt; with this logic already built, plus Buyer, Vendor and Ship to blocks, dropdowns for payment terms and shipping, and an approval line. It comes as a Google Sheets copy or an .xlsx. The formulas above are enough to build your own.&lt;/p&gt;

&lt;p&gt;When you keep purchase orders in a sheet, which total gives you the most trouble: the discount, the tax or the shipping?&lt;/p&gt;

</description>
      <category>googlesheets</category>
      <category>spreadsheet</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
    <item>
      <title>canvas.toBlob() Can Silently Hand You Back a PNG When It Can't Encode What You Asked For</title>
      <dc:creator>DailyTech Hub</dc:creator>
      <pubDate>Tue, 28 Jul 2026 01:19:23 +0000</pubDate>
      <link>https://dev.to/dailytechid/canvastoblob-can-silently-hand-you-back-a-png-when-it-cant-encode-what-you-asked-for-4blo</link>
      <guid>https://dev.to/dailytechid/canvastoblob-can-silently-hand-you-back-a-png-when-it-cant-encode-what-you-asked-for-4blo</guid>
      <description>&lt;p&gt;I was building a small in-browser image converter — drop in a PNG or JPEG, get back a WebP or AVIF, no server involved — and ran into a failure mode that doesn't look like a failure at all. The conversion "succeeds." The download works. The file just isn't the format you asked for, and unless you check for it, you'll never know.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the problem
&lt;/h2&gt;

&lt;p&gt;The whole point of doing this client-side is that the image never leaves the browser. No upload, no server round trip, no queue. The pipeline is short:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;loadBitmap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;File&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'createImageBitmap'&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;createImageBitmap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;HTMLImageElement&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;image&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onerror&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createObjectURL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;createImageBitmap(file)&lt;/code&gt; is the fast path — it decodes the file off the main thread without you needing to wire up an &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; element first. Not every environment has it, though, so there's a fallback to the classic &lt;code&gt;new Image()&lt;/code&gt; plus &lt;code&gt;URL.createObjectURL&lt;/code&gt;, which works everywhere but ties up the main thread during decode.&lt;/p&gt;

&lt;p&gt;Once you have a bitmap, you draw it into a canvas — optionally downscaled — and ask the canvas for a blob in the target format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;canvas&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'canvas'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;canvas&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;canvas&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;canvas&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'2d'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drawImage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bitmap&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'close'&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;bitmap&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;bitmap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;close&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'function'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;bitmap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;mimeType&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`image/${targetFormat}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;blob&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Blob&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="n"&gt;canvas&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBlob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mimeType&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quality&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Calling &lt;code&gt;bitmap.close()&lt;/code&gt; matters more than it looks — &lt;code&gt;ImageBitmap&lt;/code&gt; objects hold decoded pixel data, and if you're running this over a batch of files, forgetting to release each one adds up fast in a single tab.&lt;/p&gt;

&lt;p&gt;That code above is basically the whole feature. It's short enough that it's tempting to ship it as-is. Don't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it quietly goes wrong
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;canvas.toBlob(callback, mimeType, quality)&lt;/code&gt; does not throw or reject when it can't produce the format you asked for. If the browser doesn't support encoding to that &lt;code&gt;mimeType&lt;/code&gt;, it just falls back to PNG and calls your callback like nothing happened. No exception, no rejected promise, nothing in the console. This isn't a browser bug either — it's the specified behaviour, spelled out in &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob" rel="noopener noreferrer"&gt;MDN's &lt;code&gt;toBlob()&lt;/code&gt; reference&lt;/a&gt;: an unsupported type falls back to &lt;code&gt;image/png&lt;/code&gt;. The blob you get back is a real, valid, decodable image — it's just not the one you requested.&lt;/p&gt;

&lt;p&gt;For a converter whose entire premise is "give me a smaller file in a modern format," this is close to the worst possible failure mode. AVIF and WebP exist specifically to be smaller than PNG for photographic content. If the encode silently downgrades to PNG, the user downloads a file that's often &lt;em&gt;larger&lt;/em&gt; than what they started with, believing they got the compression they asked for. There's no error to catch, because nothing threw.&lt;/p&gt;

&lt;p&gt;The only signal you have is the blob itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;blob&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;blob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;blob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="n"&gt;mimeType&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'unsupported'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That one line is doing the actual work of catching the failure. It compares the &lt;code&gt;type&lt;/code&gt; the browser reports on the resulting blob against the &lt;code&gt;mimeType&lt;/code&gt; you requested. If they don't match, that's the silent-PNG-fallback case, and only then do we turn it into a real &lt;code&gt;Error&lt;/code&gt; the rest of the app can react to — surfaced in the UI as an explicit "your browser couldn't encode this format" message instead of a mysteriously oversized download.&lt;/p&gt;

&lt;p&gt;Encode support for something like AVIF isn't uniform across browsers and platforms the way JPEG decoding is — it depends on the underlying codec libraries a given browser ships with. Rather than trying to maintain a browser/version support matrix and hope it stays accurate, checking &lt;code&gt;blob.type&lt;/code&gt; after the fact is the one method that's actually correct by construction: it asks the browser what it did, instead of guessing what it should be able to do.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rest of the machinery
&lt;/h2&gt;

&lt;p&gt;A few other details worth knowing if you're building something similar:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Downscaling is optional and cheap.&lt;/strong&gt; A &lt;code&gt;maxWidth&lt;/code&gt; setting only kicks in if it's set and the source is actually wider than it; otherwise the canvas is sized to the original dimensions and nothing is resized. It's a plain ratio calculation before &lt;code&gt;drawImage&lt;/code&gt;, not a separate resize pass.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quality defaults differ per format&lt;/strong&gt; — 0.82 for WebP, 0.72 for AVIF. The &lt;code&gt;quality&lt;/code&gt; argument is just a number between 0 and 1 handed to whichever encoder the browser uses, and the two codecs don't treat the same number the same way, so a single shared default doesn't make much sense. Whatever you pick, pick it per format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accepted inputs and batch size are both bounded.&lt;/strong&gt; The converter accepts PNG, JPEG, GIF, WebP, and AVIF as input, and caps a batch at 50 files. That's a deliberate ceiling, not a technical one — decoding and holding dozens of full-resolution bitmaps in memory at once is exactly the kind of thing that degrades gracefully until it very suddenly doesn't.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Object URLs get cleaned up.&lt;/strong&gt; Every file gets a &lt;code&gt;URL.createObjectURL()&lt;/code&gt; preview, and every converted result gets another one for the download link. Both get explicitly revoked when a batch is cleared or re-converted. Blob URLs aren't garbage collected just because nothing references them anymore in your JS — leave enough of them alive in a long session and you'll leak memory for no visible reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this approach doesn't give you
&lt;/h2&gt;

&lt;p&gt;Worth being upfront about the tradeoffs of doing this in a canvas rather than server-side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;EXIF and orientation metadata are gone.&lt;/strong&gt; &lt;code&gt;drawImage&lt;/code&gt; followed by &lt;code&gt;toBlob&lt;/code&gt; rasterizes pixels onto a canvas and re-encodes from there — none of the original file's metadata survives that trip. If you need to preserve camera info, GPS tags, or orientation flags, canvas-based conversion isn't the tool for it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything lives in the tab's memory.&lt;/strong&gt; There's no streaming, no chunking — the whole bitmap gets decoded and drawn in memory. A handful of large source images can push a browser tab further than you'd expect, especially on lower-memory devices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Encode support isn't guaranteed&lt;/strong&gt;, which is the whole reason the &lt;code&gt;blob.type&lt;/code&gt; check exists in the first place, rather than being an edge case you can ignore.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this makes client-side conversion a bad idea — it's exactly why doing the work in the browser is appealing: no server storage, no upload wait, and the failure mode above is fully fixable in one line once you know to look for it. I ended up wrapping this into a small &lt;a href="https://tools.dailytech.id/en/image-to-webp/" rel="noopener noreferrer"&gt;image-to-WebP tool&lt;/a&gt; I maintain, and if you're deciding between AVIF and WebP as your target format, I wrote up the actual tradeoffs in more detail &lt;a href="https://tools.dailytech.id/en/blog/avif-vs-webp-comparison/" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you're building anything with &lt;code&gt;canvas.toBlob()&lt;/code&gt;, the takeaway is narrow but worth remembering: a successful callback is not proof you got the format you asked for. Check &lt;code&gt;blob.type&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>performance</category>
      <category>browser</category>
    </item>
    <item>
      <title>iPhone Suddenly Stuck on SOS Only? This Simple Fix Saves Your Signal</title>
      <dc:creator>DailyTech Hub</dc:creator>
      <pubDate>Fri, 02 Jan 2026 15:16:41 +0000</pubDate>
      <link>https://dev.to/dailytechid/iphone-suddenly-stuck-on-sos-only-this-simple-fix-saves-your-signal-2dag</link>
      <guid>https://dev.to/dailytechid/iphone-suddenly-stuck-on-sos-only-this-simple-fix-saves-your-signal-2dag</guid>
      <description>&lt;p&gt;We’ve all been there: you pull out your iPhone to check a commit or a notification, and instead of 5G or LTE, the status bar displays &lt;strong&gt;"SOS Only."&lt;/strong&gt; It’s a frustrating experience that usually happens at the worst possible time—after an iOS update, during travel, or randomly in the middle of your day.&lt;/p&gt;

&lt;p&gt;But what does this state actually signify? Technically, "SOS Only" means your iPhone's modem cannot establish a handshake with your specific carrier (Verizon, T-Mobile, etc.), but it &lt;strong&gt;is&lt;/strong&gt; detecting a signal from other nearby towers. Under international emergency standards, your phone is allowed to route emergency calls (911/112) through any available network, even if you aren't a subscriber.&lt;/p&gt;

&lt;p&gt;If you’re stuck in this loop, here is the technical 8-step hierarchy to resolve the issue.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Airplane Mode "Soft Reset"
&lt;/h2&gt;

&lt;p&gt;The fastest way to force a re-scan of local frequencies is the Airplane Mode toggle. This forces the radio power amplifier to cycle off and on, clearing the current state of the cellular stack.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open &lt;strong&gt;Control Center&lt;/strong&gt; &amp;gt; Toggle &lt;strong&gt;Airplane Mode&lt;/strong&gt; ON.&lt;/li&gt;
&lt;li&gt;Wait &lt;strong&gt;15 seconds&lt;/strong&gt; (essential to let the capacitors discharge and the radio fully power down).&lt;/li&gt;
&lt;li&gt;Toggle it OFF and wait for the "Searching" animation to lock onto a tower.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Verify Cellular Data &amp;amp; Line Settings
&lt;/h2&gt;

&lt;p&gt;Sometimes, the logic governing multi-SIM or roaming gets toggled off due to a software glitch.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings &amp;gt; Cellular&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Ensure &lt;strong&gt;Cellular Data&lt;/strong&gt; is toggled ON.&lt;/li&gt;
&lt;li&gt;If you use an eSIM/Physical SIM combo, tap your primary line and ensure &lt;strong&gt;"Turn On This Line"&lt;/strong&gt; is active.&lt;/li&gt;
&lt;li&gt;Check that &lt;strong&gt;Voice &amp;amp; Data&lt;/strong&gt; is set to a supported protocol (LTE or 5G Auto).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Reseat the Hardware (SIM &amp;amp; eSIM)
&lt;/h2&gt;

&lt;p&gt;Physical displacement is a common culprit for "SOS Only." Even a fraction of a millimeter misalignment can cause a communication failure between the SIM chip and the logic board.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Physical SIM:&lt;/strong&gt; Eject the tray using a SIM tool, inspect the gold contacts for debris or scratches, and re-insert it firmly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;eSIM:&lt;/strong&gt; While you can’t move it physically, you can "re-seat" the software profile. Toggle the line OFF in settings, wait 10 seconds, and toggle it back ON to re-initiate the handshake.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Reset Network Settings
&lt;/h2&gt;

&lt;p&gt;This is the "magic bullet" for persistent software-side connectivity issues. It flushes all cellular caches, temporary files, DNS settings, and APN configurations.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings &amp;gt; General &amp;gt; Transfer or Reset iPhone &amp;gt; Reset &amp;gt; Reset Network Settings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warning:&lt;/strong&gt; This will delete your saved Wi-Fi passwords and Bluetooth pairings. It’s a clean slate for your network stack.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Update iOS to the Latest Version
&lt;/h2&gt;

&lt;p&gt;Apple frequently bundles modem firmware updates within iOS releases. If you are running an outdated version, your phone might be trying to connect using outdated protocols.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connect to a stable Wi-Fi network.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings &amp;gt; General &amp;gt; Software Update&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;If a patch is available, install it. This often fixes bugs introduced by previous versions that affect how the modem interacts with 5G infrastructure.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Manual Carrier Selection
&lt;/h2&gt;

&lt;p&gt;By default, iPhones use "Automatic" network selection. If the phone gets "confused" or tries to connect to a restricted tower (e.g., a roaming partner with a broken agreement), it defaults to SOS.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings &amp;gt; Cellular &amp;gt; Network Selection&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Turn &lt;strong&gt;Automatic OFF&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Wait for the list to populate (this can take a minute) and manually select your specific carrier. This forces the modem to ignore other broadcasts and focus solely on your provider.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. Trigger a Carrier Settings Update
&lt;/h2&gt;

&lt;p&gt;These are separate from iOS updates. They are small &lt;code&gt;.plist&lt;/code&gt; files sent by your provider to update network frequencies and roaming configurations.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ensure you are on Wi-Fi.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings &amp;gt; General &amp;gt; About&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Stay on this screen for 30 seconds. If an update is available, a pop-up will appear saying &lt;strong&gt;"Carrier Settings Update"&lt;/strong&gt;. Tap &lt;strong&gt;Update&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8. Factory Reset (The Last Resort)
&lt;/h2&gt;

&lt;p&gt;If you’ve tried everything and the "SOS Only" persists, you might be dealing with deep system corruption. A factory reset wipes the device and reinstalls a fresh copy of the OS.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CRITICAL:&lt;/strong&gt; Back up your iPhone to iCloud or a Mac/PC first.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings &amp;gt; General &amp;gt; Transfer or Reset iPhone &amp;gt; Erase All Content and Settings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Set up the phone as "New" initially to see if the signal returns before restoring your backup.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technical Indicators of Hardware Failure
&lt;/h2&gt;

&lt;p&gt;If you have completed all 8 steps and the "SOS Only" remains, it is likely a hardware issue:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Empty Modem Firmware:&lt;/strong&gt; Go to &lt;em&gt;Settings &amp;gt; General &amp;gt; About&lt;/em&gt;. If the "Modem Firmware" field is blank, the baseband chip has likely failed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account Suspension:&lt;/strong&gt; Contact your carrier. If you missed a payment or if there is a "SIM Swap" flag on your account, they will block the SIM from the network.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Pro Tip:&lt;/strong&gt; Always check &lt;strong&gt;DownDetector&lt;/strong&gt; first. If your carrier’s tower is down in your zip code, no amount of software resetting will bring your bars back!&lt;/p&gt;

</description>
      <category>iphone</category>
    </item>
  </channel>
</rss>
