using small size for popout images

This commit is contained in:
Roland Osborne 2022-08-30 23:28:19 -07:00
parent a04d6b9f4c
commit dee3b4155a
3 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,3 @@
#!/bin/bash
convert -strip $1 -auto-orient -resize '1024x1024>' $2

View File

@ -137,7 +137,7 @@ async function upload(entry, update, complete) {
if (file.image) {
const formData = new FormData();
formData.append('asset', file.image);
let transform = encodeURIComponent(JSON.stringify(["ithumb;photo", "icopy;photo"]));
let transform = encodeURIComponent(JSON.stringify(["ithumb;photo", "ilg;photo"]));
let asset = await axios.post(`${entry.url}&transforms=${transform}`, formData, {
signal: entry.cancel.signal,
onUploadProgress: (ev) => {
@ -149,7 +149,7 @@ async function upload(entry, update, complete) {
entry.assets.push({
image: {
thumb: asset.data.find(item => item.transform === 'ithumb;photo').assetId,
full: asset.data.find(item => item.transform === 'icopy;photo').assetId,
full: asset.data.find(item => item.transform === 'ilg;photo').assetId,
}
});
}

View File

@ -9,6 +9,7 @@ export const ChannelItemWrapper = styled.div`
border-bottom: 1px solid ${Colors.itemDivider};
line-height: 16px;
cursor: pointer;
overflow: hidden;
&:hover {
background-color: ${Colors.formHover};