Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Newyana2 Newsgroups: comp.mobile.android Subject: Re: ebook reader - image scaling ? Date: Thu, 30 May 2024 08:02:48 -0400 Organization: A noiseless patient Spider Lines: 41 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 30 May 2024 14:02:39 +0200 (CEST) Injection-Info: dont-email.me; posting-host="e9ad24e29566aa24e9d19680509e46d9"; logging-data="1778840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0+HyaQJX/dKrw2m5o7GgTA9Vd1Vd7qFI=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 Cancel-Lock: sha1:VCCSc2QpNoQmuH7Ry2qmJyxXsEc= Content-Language: en-US In-Reply-To: Bytes: 2394 On 5/30/2024 5:02 AM, R.Wieser wrote: > Hello all, > > In a previous thread I mentioned I found the below ebook-reader : > > https://f-droid.org/en/packages/com.github.axet.bookreader/ > > Currenly I've added an image (by hand) and am trying to get it to stretch to > half a smartphones screen width. But no matter what I try (and which works > in a HTML page on a PC(1) ) I can't find how to make that happen. > > (1) 'width=50%', 'width="50%"', 'style="width:50%;"' and using a CSS file. > > Question: > Am I supposed to be able to resize images in an epub(2), and if so how is > that done ? > > (2) the above epub reader does have "scale image(s) to fill the screen" > option though, but thats not quite what I was after. > You seem to have only half the story here. You're making your own epub file as HTML and CSS in a ZIP? I don't understand the syntax above. HTML: (it also works with quotes: "50%") Or Or in either a STYLE block or a CSS file: IMG {width: 50%; height: 50%;} And you can also use an ID: I don't know of anywhere you might use apostrophes other than inside javascript.